Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
SOLVED

Experience Fragments and Translations with Variations

Avatar

Level 7

What is best practice? should I be creating translation experiences under variations for experience fragments. Currently I have something like

  • /content/experience-fragments/my-site/structure/header/en-gb.html
  • /content/experience-fragments/my-site/structure/header/en-ca.html
  • /content/experience-fragments/my-site/structure/header/fr-ca.html
  • /content/experience-fragments/my-site/structure/header/es-ca.html

What is the preferred way to prepare and structure my experience fragments for translations?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

In my opinion that should be the same structure as the content structure.

If your content structure is like this:

    /content/my-site/{country}/{language}/page

then the experience fragment should be like this way

    /content/experience-fragments/my-site/{country}/{language}/structure/header

 

Benefits:

  1. Authors will never be confused at the time of authoring.
  2. You can create content packages easily. For example, you need to create a content package for Germany. So your filter path will be, /content/my-site/de, /content/experience-fragments/my-site/de, /content/dam/my-site/de.
    Otherwise, there will be unnecessary content.

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

In my opinion that should be the same structure as the content structure.

If your content structure is like this:

    /content/my-site/{country}/{language}/page

then the experience fragment should be like this way

    /content/experience-fragments/my-site/{country}/{language}/structure/header

 

Benefits:

  1. Authors will never be confused at the time of authoring.
  2. You can create content packages easily. For example, you need to create a content package for Germany. So your filter path will be, /content/my-site/de, /content/experience-fragments/my-site/de, /content/dam/my-site/de.
    Otherwise, there will be unnecessary content.