Adoxio / xRM-Portals-Community-Edition

The definitive edition of Microsoft Open Source Portals, supported by the experts in portals.
MIT License
107 stars 60 forks source link

Question: CMS Replication & Multilingual/Multi-Regional Websites #84

Closed fainelia closed 5 years ago

fainelia commented 6 years ago

When creating the pages through the portal, only English content page is available. is there a way to configure replication of content pages? Like in previous version: https://community.adxstudio.com/products/adxstudio-portals/documentation/developers-guide/knowledge-base/cms-replication-multi-regional-websites/

This configuration does not work in the new portal, CmsReplicationOrganizationServiceEventProvider.cs is not hit

SagarDhuri commented 5 years ago

Hi Xrmportals expert, I am also stuck on the above issue. Can anyone please guide me how do I create replication of an existing portal website in CRM online?

fainelia commented 5 years ago

We created a workflow that creates French content page upon Root Page creation

SagarDhuri commented 5 years ago

Hi Fainelia,

I want to create copy of an existing website record. So that should basically copy all the contents of the website i.e. Child pages, content snippets, site settings etc. into the new website record. Any idea how could we achieve that?
Thanks, Sagar

fainelia commented 5 years ago

is it one time copy? or as the records are created? if it is one time copy i would do Export/ Import with Excel: Export the records you would like to replicate, update the website, delete the hidden columns with the guids and import back it should create new records in crm if it is as records are created, you can use a plugin that listens to the event and replicates the record or using a workflow, please be careful when replicating web pages, the root page is created with content English page together hope it helps

amervitz commented 5 years ago

The solutions provided by Microsoft include a plugin assembly named Adoxio.Xrm.Plugins with a plugin step named Adoxio.Xrm.Plugins.MultiLanguage.WebPagePlugin - this plugin step is what is responsible for creating the localized content web page when the root web page is created. Having looked at the internals of this plugin, it only creates the localized content web page for the language that is denoted on the website record as the default language, and doesn't create web pages for any of the other supported languages related to the website.

I have also tested this in online portals and this behavior appears to be the same.

We won't be able to do anything in this project to change this behavior because Microsoft controls the distribution of the plugin. To work around this limitation, I agree with the recommendation by @fainelia of creating a workflow that creates the additional content web page record for the additional language(s).

amervitz commented 5 years ago

This topic has been documented in this new wiki page:

https://github.com/Adoxio/xRM-Portals-Community-Edition/wiki/CMS-Multi-Language-Replication