how to manage experience fragment reference in live copy | Community
Skip to main content
adivj95
Level 2
Mar 12, 2021 4:46 PM UTC
Solved

how to manage experience fragment reference in live copy

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.
Shashi_Mulugu
Shashi_MuluguAccepted solution
New Participant
Mar 13, 2021 4:09 PM UTC

@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

 

 

 

5 replies

adivj95
adivj95Author
Level 2
Mar 13, 2021 4:26 PM UTC
  •  
Translate
Shashi_Mulugu
Shashi_MuluguAccepted solution
New Participant
Mar 13, 2021 4:09 PM UTC

@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

 

 

 

Translate
adivj95
adivj95Author
Level 2
Mar 13, 2021 4:25 PM UTC
This only works if experience fragment configured on template but my requirement is for experience fragment configured in content
Translate
joerghoh
Employee
Mar 13, 2021 2:17 PM UTC

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.

Translate
adivj95
adivj95Author
Level 2
Mar 13, 2021 4:27 PM UTC
Thanks for suggestions ,I will try to implement this
Translate