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

how to manage experience fragment reference in live copy

  • March 12, 2021
  • 3 replies
  • 1330 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

joerghoh
Adobe Employee
Adobe 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
Level 2
March 13, 2021
Thanks for suggestions ,I will try to implement this
Shashi_Mulugu
Community Advisor
Shashi_MuluguCommunity AdvisorAccepted solution
Community Advisor
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
Level 2
March 13, 2021
This only works if experience fragment configured on template but my requirement is for experience fragment configured in content
adivj95
adivj95Author
Level 2
March 13, 2021
  •