Friday 8 September 2017

Experience Fragments Vs Content Fragment

Namastey & Welcome !

It's quite a common questions these days, What is the difference between Experience Fragments and Content Fragments ?

Its Simple !

A Fragment is useful because we can reuse them on multiple pages and
whenever required you can edit them from one single location.

To differentiate between CF and XF it's important to understand who is the target user.
Experience Fragment is mainly for authors
And Content Fragment is mainly for content writers.



Usually content writers ( e.g. news editors, magazine authors ) are more concerned of writing textual content and provide associated images.

They may worry about creating variations of content for different channel like mobile, print,tablet etc or different variation of content like teasers, summary etc.

Once the content is created, Authors may use the content on AEM Page as authors are more responsible for presenting content in appropriate layout

EXPERIENCE FRAGMENT

Lets take an example, You have contact information section on your AEM page which contains a few custom components like address, phone number and email details and a map view of address. This set of component is a meaningful experience in itself.

You can create this set of component as Experience fragment and then you can use this experience fragment on any number of the pages.

Please let me know if you have any other question.

Dhanywad !

Basic Sling Model Exporter

/* Open a page which is having component /apps/project/components/page/page /content/project/en/jcr:content.model.json Don't miss...