Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

How to use different experience fragments in Live Copy Pages

Avatar

Level 2

I have created live copy of a site as I wanted to reuse maximum content from main site.But I want to use different Header experience fragment for the live copy site.Can i get help in creating different experience fragment for different live copy sites?

1 Accepted Solution

Avatar

Community Advisor

Hi @pshetty1 
Localisation is supported by Core XF component, please check

https://experienceleague.adobe.com/en/docs/experience-manager-core-components/using/wcm-components/e... 



Arun Patidar
12 Replies

Avatar

Community Advisor

Hi @pshetty1 
Localisation is supported by Core XF component, please check

https://experienceleague.adobe.com/en/docs/experience-manager-core-components/using/wcm-components/e... 



Arun Patidar

Avatar

Level 2

Hi @arunpatidar  Thankyou I will give read this article and get back. Thankyou for the details

Avatar

Level 7

@pshetty1 if question is to have a different variation for each live copy, once the live copy connection is established, break the inheritance [only for header]and update the  experience fragment with the required variation 

Avatar

Community Advisor

Hi @Rite18 
You can do that, but you'll need to include the header directly on the page instead of within the template. This approach comes with its own drawbacks, so it's better to use the Core XF component for this use case.



Arun Patidar

Avatar

Level 7

yes I agree in  the case of localization on the header however if the question is to have a whole different variation of the header then localization would not be effective - Is that right @arunpatidar 

Avatar

Community Advisor

Hi @Rite18 
Yes, you can then utilize context-aware-config, where the XF path can be configured and used by header component.

Examples in core components : https://experienceleague.adobe.com/en/docs/experience-manager-core-components/using/developing/conte... 



Arun Patidar

Avatar

Level 7

sure thank you @arunpatidar , i think ask is for variation  to have different experience fragments with live copy setup 

@pshetty1  can you look into discussion and clarify if we are addressing your question or not 

Avatar

Level 2

Your correct. The requirement is to show different variations of experience fragments in different copies.

Avatar

Community Advisor

You can also used variation with context-aware logic.



Arun Patidar

Avatar

Level 2

Hi @Rite18  I am not able to break the inheritence as the header experience fragment is defined in templates.

Avatar

Administrator

@pshetty1 Did you find the suggestions helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!



Kautuk Sahni

Avatar

Administrator

@pshetty1 Did you find the suggestions helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!



Kautuk Sahni