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 add a new Experience Fragment Template

Avatar

Level 1

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.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

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