How do I create two experience fragment templates and then insert them into two different page templates? | Community
Skip to main content
Level 2
February 26, 2025
Solved

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

  • February 26, 2025
  • 2 replies
  • 640 views

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.

Best answer by Sady_Rifat

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-allowedparents-allowedchildren-in-editable/m-p/656108/highlight/true#M164356

2 replies

SreenivasBr
Level 4
February 26, 2025

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?

VodjakxaAuthor
Level 2
February 26, 2025

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

rk_pandian
Level 4
February 27, 2025

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

Sady_Rifat
Community Advisor
Sady_RifatCommunity AdvisorAccepted solution
Community Advisor
February 27, 2025