How to add a new Experience Fragment Template

evelinealbers

23-04-2019

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.

Accepted Solutions (1)

Accepted Solutions (1)

Arun_Patidar

MVP

24-04-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(.*)?

Answers (0)