how to manage experience fragment reference in live copy | Community
Skip to main content
adivj95
New Participant
March 12, 2021
Solved

how to manage experience fragment reference in live copy

  • March 12, 2021
  • 3 replies
  • 1327 views

I have a requirement where my site-structure is like this

/content

     --/mysite

              --/us(master)

                 --/en/page

              --/fr(live-copy)

                 --/en/page

on page i have a experience fragment which is pointing to 

/content/experience-fragments/mysite/us/en/xf

on fr site i want this experience fragment to be picked 

/content/experience-fragments/mysite/fr/en/xf

how can i achieve this??

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Shashi_Mulugu

@adivj95 if your requirement is just to pick up experience fragment based on locale OOTB experience Fragment component has inbuilt mechanism with in it.

https://experienceleague.adobe.com/docs/experience-manager-core-components/using/components/experience-fragment.html?lang=en#version-and-compatibility

 

 

 

3 replies

adivj95
adivj95Author
New Participant
March 13, 2021
  •  
Shashi_Mulugu
Shashi_MuluguAccepted solution
New Participant
March 13, 2021

@adivj95 if your requirement is just to pick up experience fragment based on locale OOTB experience Fragment component has inbuilt mechanism with in it.

https://experienceleague.adobe.com/docs/experience-manager-core-components/using/components/experience-fragment.html?lang=en#version-and-compatibility

 

 

 

adivj95
adivj95Author
New Participant
March 13, 2021
This only works if experience fragment configured on template but my requirement is for experience fragment configured in content
joerghoh
Employee
March 13, 2021

So you want to rewrite the references to XFs during the rollout in a way, that the rolled out page references XFs in a different (but computable) tree of the repo?  In that case you should create a custom rollout action and include this action in the rollout configuration.

adivj95
adivj95Author
New Participant
March 13, 2021
Thanks for suggestions ,I will try to implement this