Drupal 7 Domain Access XML Sitemap - drupal-7

What is the best way to accomplish creating sitemaps for a Drupal 7 using domain access. I can generate the sitemaps using the xml module and domain access. I cannot however get to the sitemaps through their url. Any ideas how I do this?

You can use Views data export module to accomplish this.
https://www.drupal.org/project/views_data_export/issues/2061697
However some small changes in the views template files will be required.

Related

Exporting Content Type Data from Drupal 7 Database

we're in the process of moving a client site from Drupal to Kentico and hoping to speed up some of the content creation by importing data for a custom content type. I don't have development access to the Drupal site to do anything in PHP, I only have a full export of the database that we've restored in our MSSQL environment.
I've been looking through the database and trying to reverse engineer how this info is stored, but it's extremely complicated compared to exports we've used from other CMS platforms. So far from what I can tell, I need to at least use a combination of data from the node table and the field_data_ tables. For example, in Drupal there's a custom content type for award, so I'm looking at the data tables that start with field_data_field_award_, but those look like they need to be further joined to something else since they don't contain the data itself.
Any insight or suggestions are much appreciated.
Using only DB export to do migration can turn out to be unnecessarily complex.
An easy option would be to create REST endpoints in Drupal application to pull content pages as JSON and then consume JSON in kentico to create content.
For example: /api/awards will render all awards pages in Drupal.
For Drupal 8 You can use views REST export to create this endpoint in minutes.
For Drupal 7 https://www.drupal.org/project/views_data_export can be used to export content as JSON

Rewrite the code to handle the views in an Angular-Laravel App

I am working on an App which is going to be huge.This app is using Laravel for backend and currently uses Angular to load views which i believe is not suitable for a large application.I would like to rewrite the code to load the views using Laravel's Blade engine.
I have gone through this:
What application structure to use with AngularJS and Laravel?
I am interested in the second option provided in the answer but have no idea how to implement it in my existing application.
Please suggest me what changes do i need to do.
Thanks in advance.

Loading Facelets templates from database

In my application (CMS for internal purposes) I'm facing the problem how to serve pages stored in the database with dynamic URL (e.g. http://example.com/page3) using the JSF. Generally, let's say I want to grab the page content from the database, put it inside jsf file and serve it as /page3. Is there any way how to obtain the request URL from JSF, search the database for the article (instead of searching *xhtml in the WAR), build dynamically the JSF XHML file and return it to JSF as InputStream for example? I've found this answed by Thomas Maerz, but it failed with
Unable to create a new instance of 'com.test.CustomResourceResolver': java.lang.InstantiationException: com.test.CustomResourceResolver
on my glassfish v4 (Mojarra 2.2), and I also found that ResourceResolver is deprecated in JSF2.2.
I've googled a lot, but this seems to be not very common/documented part of JSF.
Thank you for any help.
I did not understand fully the problem, but for url change you can use prettyfaces, for dynamic forms you can use primefaces ext and I am not suggest keep form in the database, if I know your target I can suggest more useful answer.

cakephp for multiple static sites

I have successfully created a static website using cakephp to create the static html files using the console.
However, what I want to do now is have a console script that can create multiple websites from the same shared data, with each website using data that is unique to it, but sharing the db as a source.
So, how do I set up the app folder in relation to each website? Do I need a separate installation of cakephp for each site? Or can I have a shared App folder in cgi-bin or something like that?
Thanks
You can share the CakePHP core between multiple apps, however you will need a separate 'app' folder for each website (with the appropriate structure). See this question for more details. Essentially you will need to modify the index.php file in each app/webroot folder to point to the CakePHP core. I use this technique and it's much easier to maintain with only one core as opposed to a whole separate installation of Cake for each site.

CodeIgniter separated database

My problem is I'm developing a site with CodeIgniter, and the actual site and the admin are separated in different folders and using their own controllers, views, and model.
I would like to use only one database.php for both, and I can't really figure out how to point the admin database connection parameter to the site's database.php
Could someone give me a hint?
Thank you.
Justing adding my comment above as an answer here so that it helps other to know what worked to solve the problem -
If both the sites are at the same server - one of the quickest ways to achieve this is to setup all the values in database.php and in another just remove all the content and add this line -
include(/full/path/application/config/database.php) ;
Instead of using two CI structures you can use folders in controllers and views. For example:
application
controllers
admin
login.php
This will produce a url like: mysite.com/admin/login/
Just make sure to not create a Admin class in the root of controllers.
With this you will have just one database configuration for both admin controllers and normal controllers.

Resources