Expand my Community achievements bar.

SOLVED

How do I create two experience fragment templates and then insert them into two different page templates?

Avatar

Level 2

Means inserting the two experience fragment templates into two distinct page templates. That is, in a page template you can only insert one experience fragmen, not both.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hello @Vodjakxa ,
you can try with,

cq:allowedTemplates="value is your page template path"

Reference: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/allowedpaths-and-allowedpa...

View solution in original post

4 Replies

Avatar

Level 5

The question is not clear. What do you mean by inserting template into another template? We can insert a component in a page template but not a template.

Do you mean using experience fragment component to use experience fragments in page template?

Avatar

Level 2

I need to create two experience fragment templates. And then I have to enable the two EX templates in two different page templates.

Avatar

Level 4

You can create XF templates, but when you say you want to enable those templates, you mean to add them as allowedTemplates right?

 

Regards,

Ramkumar

Avatar

Correct answer by
Community Advisor

Hello @Vodjakxa ,
you can try with,

cq:allowedTemplates="value is your page template path"

Reference: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/allowedpaths-and-allowedpa...