Problem with heredity of Experience Fragments allowed templates

There was an issue with the inheritance of allowed templates for Experience Fragments in Adobe Experience Manager. While it worked well in the Development environment, it didn’t function properly in the Production environment. In production, it was needed to set the allowed templates on every folder, while in development, the editors could create Experience Fragments in any folder without adding allowed templates. The article describes a solution to this problem.

Description description

Environment

  • Adobe Experience Manager
  • Experience Fragments

Issue/Symptoms

There was an issue with the heredity of allowed templates for Experience Fragments.

In production, they needed to set the allowed templates on every folder where the editors needed to be able to create Experience Fragments while in dev the editors could create Experience Fragments in any folder without the need to add allowed templates.

Resolution resolution

While checking the instances it was noticed that on their Dev author for the Experience Fragments, they had the following Allowed templates configured for Experience fragments [ 1] while on the Prod instance, they had [ 2] .

After setting the same allowed templates on both instances, they were able to create Experience Fragments in Production without the need to add the templates to each folder.

When setting the allowed templates in Experience Fragments configuration the user configures the Allowed Templates for the entire Instance while otherwise, the user configures them at the folder level.

However, the templates configured at the instance level can be overwritten upon upgrade.

[ 1] DEV

https://author-pxxxxx-eyyyyyy.adobeaemcloud.com/ui#/aem/aem/start.html

Experience fragments - configure - Allowed templates:

/libs/cq/experience-fragments/components/experiencefragment/template

/conf/folder/settings/wcm/templates/xf-template

[ 2] PROD

https://author-pxxxxx-ezzzzzz.adobeaemcloud.com/ui#/aem/aem/start.html

Experience fragments - configure - Allowed templates:

/libs/cq/experience-fragments/components/experiencefragment/template

For more information on how to Configure the Allowed Templates for your Folder, follow this link:

AEM as a Cloud Service Experience Fragments User Guide.

recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f