Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

AEM 6.5 Experience Fragments

Avatar

Level 10

Hi all,

 

The below URL explains  Experience Fragments creation:

Experience Fragments | Adobe Experience Manager

 

1. When we configure allowed templates on these folders, what is the implication?

When we create Experience Fragments in that folder, we will see only those templates?

 

2. How to create Experience Fragment Templates?

I do not see any tutorial for the whole process (including templates) of Experience Fragments creation in one place.

Is there one?

 

3. For Content Fragment creation also do we need to configure allowed templates on these folders?

 

Appreciate all your responses.

 

Thanks,

Rama.

1 Accepted Solution

Avatar

Correct answer by
Level 5

Hi @AEM_Forum ,

 

1. Content Fragments are created from Content Fragment Model.

Up to 6.4, we needed to create a Content Fragment Model and create Content Fragments from it.

But AEM 6,5 allows us to Create Content Fragments directly.

Is this correct?

- There are two types of the content fragment. If we want to create a simple content fragment without any predefined structure then we no need to create any model. The default model "simple fragment (deprecated in 6.5)" can be leveraged.

- But if we require any structured or custom fields in our content fragment then we have to create a content fragment model. This type of content fragment is known as a structured fragment.

- In AEM 6.4+ versions it is recommended to use only structured content fragments by creating content fragment models.

https://experienceleague.adobe.com/docs/experience-manager-64/assets/fragments/content-fragments.htm... 

 

2. How to create Experience Fragment Templates? - Same as content page template creation. Editable Templates or Normal Templates?

Not like "Create" -> "Experience Fragment" kind of a menu?

 

- We have to create only editable templates for the experience fragments. We don't have any specific template menu for experience fragments.

Experience Fragments are fully laid out content; a fragment of a web page.

 

3. Content fragments are assets.  Experience Fragment are not Assets?

- Yes, Experience fragments are not assets rather they are the fragments of a content page.

- Content Fragments and Experience Fragments are different features within AEM:

  • Content Fragments are editorial content, primarily text, and related images. They are pure content, without design and layout.
  • Experience Fragments are fully laid out content; a fragment of a web page.
  • Experience Fragments can contain content in the form of Content Fragments, but not the other way around.

https://experienceleague.adobe.com/docs/experience-manager-learn/sites/content-fragments/understand-... 

View solution in original post

3 Replies

Avatar

Level 5

Hi @AEM_Forum ,

I have tried to articulate the possible explanations and resources for your questions to the best of my knowledge :

1. When we configure allowed templates on these folders, what is the implication?

  • We can configure allowed templates property for experience fragments as we usually do for the content pages. The page templates which are available for the content pages can also be used for experience fragments.
  • When we create Experience Fragments in that folder, we will see only those templates? - Yes
  • This simply means that only the templates which are added in the allowed template section will be available for the authors when they create experience fragments. We can use regular expressions as well for the allowed template property.
  • https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-create-experience-f... 

2. How to create Experience Fragment Templates? - Same as content page template creation.

3. For Content Fragment creation also do we need to configure allowed templates on these folders? - No

  • Content fragments are assets. They do not leverage page templates. Instead for content fragments "content fragment models" will act as templates.
  • when we create a folder in the "configuration browser" we need to select the content fragments models checkbox. By doing this we are allowing AEM to store content fragment models in their respective folders.

Screenshot (48).png

  • After that, we can locate the same folder in the Tools > Assets > Content fragment models. Inside that folder, we can create content fragment models.

Screenshot (49).png

 

  • To enable the models, we need to navigate the assets folder where we want to create the content fragments. Then update the "cloud configuration" property of that folder or the parent folder and the models will be enabled for the same folder as well as for their child folders. Now if we create any content fragment inside these folders then the fragment models will be visible.

Screenshot (50).png

 

Hope this helps.

 

Thanks,

Ravi Joshi 

Avatar

Level 10

Thanks Ravi for this very detailed explanation.

 

1. Content Fragments are created from Content Fragment Model.

Upto 6.4, we needed to create a Content Fragment Model and create Content Fragment from it.

But AEM 6,5 allows us to Create Content Fragment directly.

Is this correct?

 

2. How to create Experience Fragment Templates? - Same as content page template creation. Editable Templates or Normal Templates?

Not like "Create" -> "Experience Fragment" kind of a menu?

 

3. Content fragments are assets.  Experience Fragment are not Assets?

 

Thanks,

Rama.

Avatar

Correct answer by
Level 5

Hi @AEM_Forum ,

 

1. Content Fragments are created from Content Fragment Model.

Up to 6.4, we needed to create a Content Fragment Model and create Content Fragments from it.

But AEM 6,5 allows us to Create Content Fragments directly.

Is this correct?

- There are two types of the content fragment. If we want to create a simple content fragment without any predefined structure then we no need to create any model. The default model "simple fragment (deprecated in 6.5)" can be leveraged.

- But if we require any structured or custom fields in our content fragment then we have to create a content fragment model. This type of content fragment is known as a structured fragment.

- In AEM 6.4+ versions it is recommended to use only structured content fragments by creating content fragment models.

https://experienceleague.adobe.com/docs/experience-manager-64/assets/fragments/content-fragments.htm... 

 

2. How to create Experience Fragment Templates? - Same as content page template creation. Editable Templates or Normal Templates?

Not like "Create" -> "Experience Fragment" kind of a menu?

 

- We have to create only editable templates for the experience fragments. We don't have any specific template menu for experience fragments.

Experience Fragments are fully laid out content; a fragment of a web page.

 

3. Content fragments are assets.  Experience Fragment are not Assets?

- Yes, Experience fragments are not assets rather they are the fragments of a content page.

- Content Fragments and Experience Fragments are different features within AEM:

  • Content Fragments are editorial content, primarily text, and related images. They are pure content, without design and layout.
  • Experience Fragments are fully laid out content; a fragment of a web page.
  • Experience Fragments can contain content in the form of Content Fragments, but not the other way around.

https://experienceleague.adobe.com/docs/experience-manager-learn/sites/content-fragments/understand-...