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

Adobe Experience Fragments - Custom Components

Avatar

Level 2

Hi all,

Adobe Experience Fragments is a new feature for AEM, I'm working on creating a new template and configuring it to allow custom components that works on static templates. I got the way to implement a new template based on the "Experience Fragment - Web Template", however I want to customize some things.

My question is:

  1. How can I allow to the new template (or a Out of the Box template, I mean the "Experience Fragment - Web Template"), to use my custom components.?

I have AEM 6.3 version.

Thanks in advance for any suggestions.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

for editable templates, It is done by policy

Please check Creating Page Templates

for example, if you will edit http://localhost:4502/editor.html/conf/we-retail/settings/wcm/templates/experience-fragment-web-vari...

Screen Shot 2018-07-18 at 12.57.08 AM.png

Screen Shot 2018-07-18 at 12.55.41 AM.png



Arun Patidar

View solution in original post

6 Replies

Avatar

Correct answer by
Community Advisor

Hi,

for editable templates, It is done by policy

Please check Creating Page Templates

for example, if you will edit http://localhost:4502/editor.html/conf/we-retail/settings/wcm/templates/experience-fragment-web-vari...

Screen Shot 2018-07-18 at 12.57.08 AM.png

Screen Shot 2018-07-18 at 12.55.41 AM.png



Arun Patidar

Avatar

Level 2

Hi arunp99088702,

Thank you very much. I think this is the correct answer.

However I would like to take advantage of this:

  1. Is there any way to create static templates (from developer approach), for Adobe Fragments?
  2. Is there any specific requirement.?

Again thank you very much, I appreciate the fast response.

Avatar

Community Advisor

Hi,

I won't recommend to use static template anymore for AEM 6.3 and AEM 6.4.

Although It is possible to create experience fragment using static template. Just create static template from CRXDE and add this template in allowedTemplate at /content/experience-fragments

But use editable templates, it has advantages over static templates.

Thanks
Arun



Arun Patidar

Avatar

Level 2

Yeah, I saw some stuff about that.

I'm looking to no affect pages after created. (No dynamic connection)

Another question:

  • Any dynamic template will work for Adobe Experience Fragments.? I mean, there is no special requirements to handle the features of Experience Fragments? (ex: variations )

Avatar

Community Advisor

yes, it will work without any changes on template but you need to allow this template for experience fragment using allowedTemplate at property at /content/experience-fragments.

example

/conf/we-retail/settings/wcm/templates/experience-fragment-web-variation

Thanks

Arun



Arun Patidar

Avatar

Level 2

Oks arunp99088702.

Really thank you.