Multiple Domains, some shared content, and different themes
Hello,
I am trying to achieve the following:
1. Have two different domains (domainA.com and domainB.com). We have two different licenes.
2. Have SOME pages be shared across both domains. For example, the homepage might be different, but the subpages underneath it should be shared. Or entire page groups might be shared. By shared, I mean that if a page is modified on one domainA, those changes are reflected on domainB.
3. Use a different theme for each domain.
4. Have a different sorting order for the pages on each domain. For example, "Page Group A" contains 3 pages, PageA, PageB, and PageC. I want them to be in a different order on domainB, for example, PageB, PageC, then PageA. These pages however should be shared across both domains.
How many of my items above are possible? If they are, what is best method of implementing this behavior?
Thank you.
Hello Amir,
Thank you for contacting us.
1) Create the main website which will create the pages.
2) Create secondary website which will pull pages from the first one.
3) Add a connection string in the second site which points to the database of the first one (Administration->Settings->Advanced->Data->ConnectionStrings).
4) Configure pages data provider which pulls pages from the main website by adding connectionString parameter to the OpenAccessDataProvider parameter with value the name of the connection string from step 3. You can do this from Administration->Settings->Advanced->Pages->Providers->OpenAccessDataProvider->Parameters.
Since the second site is only pulling content from the first one I suppose there will be no problem reordering pages and changing templates, however I haven`t tested this so I advise applying a few test on a backup of the project.
Thank you Stanislav,
Hello Amir,
When you change the provider you will have an option to view items between the two providers and you will have all items imported from one provider as well as all the items in your database.
The pages from your current project database will be preserved if you keep the current project provider Administration->Settings->Advanced->Pages->Providers->OpenaAccessDataProvider.