How to add a new Experience Fragment Template | Community
Skip to main content
April 24, 2019
Solved

How to add a new Experience Fragment Template

  • April 24, 2019
  • 1 reply
  • 873 views

Currently I'm running AEM6.4 and when copying the we-retail version of an empty experience fragment template-type and the web variation template, I don't see the variations itself when selection this template in the component itself.

I don't exactly know what the proper way is to new the experience fragment template to your own project.

I'm working on a nonsamplecontent AEM, so i'm using the https://github.com/Adobe-Marketing-Cloud/aem-sample-we-retail​ to copy the code from.

So can anyone tell the proper steps of how to add a new empty experience fragment template to a project so I can use it in the component.

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 arunpatidar

Hi,

To allow new templates you need to add your template in cq:allowedTemplates property at /content/experience-fragments node similar to allow page templates

cq:allowedTemplates(String[])=/conf/we-retail/settings/wcm/templates/experience-fragment(.*)?

1 reply

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
April 24, 2019

Hi,

To allow new templates you need to add your template in cq:allowedTemplates property at /content/experience-fragments node similar to allow page templates

cq:allowedTemplates(String[])=/conf/we-retail/settings/wcm/templates/experience-fragment(.*)?

Arun Patidar