How to allow some components to be added to AEM Experience Fragment (using design)? | Community
Skip to main content
New Participant
May 8, 2018
Solved

How to allow some components to be added to AEM Experience Fragment (using design)?

  • May 8, 2018
  • 2 replies
  • 2474 views

Designs are used for such cases if working with simple pages. I've tried adding /etc/design for Facebook Experience Fragment. I've added cq:designPath to the template. But I can't configure the right structure for this design.

Right now my design looks like this:

/etc/design/experience-fragment:

_jcr:content (with sling:resourceType set to wcm/core/components/designer)

__experience-fragment-template-facebook

___initial

____root (with components property specified).

No new components are allowed to be added to my experience fragments though. I would appreciate your help.

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 kautuk_sahni

Why don't you add those component while Editable template creation. Under the layout container you can select "Policy" where you can specify Allowed Components.

This can be done within XF as well but for that we need to create a XF template as mentioned in my previous thread:- AEM 6.3 Experience Fragments (this require changes in CRX/de) [I would not recommend this over my first suggestion].

-Kautuk

2 replies

smacdonald2008
New Participant
May 8, 2018

Use an Editable Template and set the policy!

kautuk_sahni
kautuk_sahniAccepted solution
Employee
May 8, 2018

Why don't you add those component while Editable template creation. Under the layout container you can select "Policy" where you can specify Allowed Components.

This can be done within XF as well but for that we need to create a XF template as mentioned in my previous thread:- AEM 6.3 Experience Fragments (this require changes in CRX/de) [I would not recommend this over my first suggestion].

-Kautuk

Kautuk Sahni