Live copies of experience fragment - AEM 6.5

karanmahi

05-06-2020

We are on AEM 6.5.3. I have an experience fragment in the "en" language. And I want to create a live copy of this XF in the es languages. When I select experience fragment and click on create, I see an option to create variation-as live copy, but that creates the live copy in the same hierarchy. But my requirement is to create the live copy under “es”  language.  I don’t want to use the language copy option because there will not be any relationship b/w en XF and es XF. I want the live copy relation b/w the two (as we maintain the relationship in content pages). This is doable on content pages but not an experience fragment. I mean under content, I can create one page under en, and live copy can roll out the same page in es language. How to achieve similar functionality in XF.

 

Another thing is when we use the XF component on the en content page, MSM creates the live copy in es language, But experience fragment path is not translated to match relative to es language. Basically, the inclusion of the experience fragment on the page does not update to match the language of the page.

 

How do we achieve the above two functionalities?

Accepted Solutions (1)

Accepted Solutions (1)

surabhikatiyar

Employee

06-06-2020

MSM in XF can be achieved in the same way as for the content pages. You need to create the folder of the Language copy and then you can create the Lanaguage copy of XF for each lanaguage folder. You can refere the document https://docs.adobe.com/content/help/en/experience-manager-64/authoring/authoring/experience-fragment..., in this under the sun-heading "Organizing your Experience Fragments" there is an image that shows the folder organisation for MSM. Steps you can follow are:

1. Create a root folder ex:sample
2. Now inside the root folder create sub-folder with Title = English and Name = en
3. Inside root folder create one more sub-folder with Title = French and Name = fr
4. Now create one experience fragment under the folder English ex: test-XF
5. Now select the French folder > Create > Lanaguage Copy
6. Now in the "Create Language Copy" console, select the source as "/content/experience-fragments/sample/en/test", then select the Target language as "french" and other configs as desired.

You are done, now this is a Live copy and MSM is also achieved.

Note: the folder name has to be the language locale ex: en,fr,gb etc.

surabhikatiyar_0-1591449689849.png

 

Answers (2)

Answers (2)

Arun_Patidar

MVP

06-06-2020

Hey,

XF does not support to create live copies outside current folder. You can use move option to move live copies to other folder or create corresponding language copies if your want localize content.

 

Use core XF component to support localization.

https://docs.adobe.com/content/help/en/experience-manager-core-components/using/get-started/localiza...

 

 

surabhikatiyar

Employee

06-06-2020

MSM in XF can be achieved in the same way as for the content pages. You need to create the folder of the Language copy and then you can create the Language copy of XF for each language folder. You can refer to the document https://docs.adobe.com/content/help/en/experience-manager-64/authoring/authoring/experience-fragment..., in this under the sun-heading "Organizing your Experience Fragments" there is an image that shows the folder organization for MSM. Steps you can follow are:

1. Create a root folder ex: sample
2. Now inside the root folder create sub-folder with Title = English and Name = en
3. Inside root folder create one more sub-folder with Title = French and Name = fr
4. Now create one experience fragment under the folder English ex: test-XF
5. Now select the French folder > Create > Language Copy
6. Now in the "Create Language Copy" console, select the source as "/content/experience-fragments/sample/en/test", then select the Target language as "french" and other configs as desired.

You are done, now this is a Live Copy, and MSM is also achieved.

Note: the folder name has to be the language locale ex: en,fr, etc.

 

surabhikatiyar_0-1591430633282.png