For Experience Fragments, how are locale variations managed in content structure? | Community
Skip to main content
Level 6
January 12, 2023
Solved

For Experience Fragments, how are locale variations managed in content structure?

  • January 12, 2023
  • 1 reply
  • 510 views

Say for example, I have an experience fragment for

/content/experience-fragments/my-site/en/subscription-box/master

 

I have 2 custom languages

/content/my-site/en

/content/my-site/fr-ca

/content/my-site/ja

 

Am I going to make locale structure (for fr-ca and ja) in the variations, or will I need to copy the entire node structure?

 

NEW STRUCTURE to handle locales?

/content/experience-fragments/my-site/fr-ca/subscription-box/master

 /content/experience-fragments/my-site/ja/subscription-box/master

 

OR NEW VARIATIONS to handle locales?

example:

/content/experience-fragments/my-site/subscription-box/fr-ca

 /content/experience-fragments/my-site/subscription-box/ja

 

ROLL OUT QUESTION:
=======================================================

When I roll out a page from /content/my-site/en, I want to roll out the path of my experience fragment. Am I expected to see something like this?

Is the out of the box rollout feature going to update the path's to the corresponding folder structure?

/content/my-site/en -> /content/experience-fragments/my-site/en/subscription-box/master

/content/my-site/fr-ca -> /content/experience-fragments/my-site/fr-ca/subscription-box/master

/content/my-site/ja -> /content/experience-fragments/my-site/ja/subscription-box/master

 

OR

Is the out of the box rollout feature going to update the path's to the corresponding VARIATION?

/content/my-site/en -> /content/experience-fragments/my-site/subscription-box/master

/content/my-site/fr-ca -> /content/experience-fragments/my-site/subscription-box/fr-ca

/content/my-site/ja -> /content/experience-fragments/my-site/subscription-box/ja

 

ORThis last example, the rollout to pages will retain the master variation, but I am required to write custom CODE, I will point the variations to fr-ca, and ja...

/content/my-site/en -> /content/experience-fragments/my-site/en/subscription-box/master

/content/my-site/fr-ca -> /content/experience-fragments/my-site/en/subscription-box/master

/content/my-site/ja -> /content/experience-fragments/my-site/en/subscription-box/master

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 ChitraMadan

Hi @supportmember ,

 

Your experience fragments can follow the same structure as your site, example

/content/my-site/country/language

and 

/content/experience-fragments/my-site/country/language/subscription-box/master

 

This article might help - https://www.albinsblog.com/2021/10/extend-aem-experience-fragment-localization.html#.Y8CH6-zP0V8

 

 

1 reply

ChitraMadan
Community Advisor
ChitraMadanCommunity AdvisorAccepted solution
Community Advisor
January 12, 2023

Hi @supportmember ,

 

Your experience fragments can follow the same structure as your site, example

/content/my-site/country/language

and 

/content/experience-fragments/my-site/country/language/subscription-box/master

 

This article might help - https://www.albinsblog.com/2021/10/extend-aem-experience-fragment-localization.html#.Y8CH6-zP0V8