Experience & Content Fragments - bartoszWesolowski/aem-tips GitHub Wiki
Experience Fragments
since AEM 6.3
resuse content across pages (and 3rd party systems)
mechanism that allows to create a content in one place and then display it in different sites by Experience Fragment Component that references the original data source
standard usage is navigation/footer - build it once and then reuse on all pages
can be directly published to social media
presentation-centric
Content Fragments
Content Fragment Models define the elements (or fields) that define what content the Content Fragment may capture and expose.
The Content Fragment is an instance of a Content Fragment Model that represents a logical content entity.
Content Fragment variations adhere to the Content Fragment Model, however, have variations in content.
Can be used on site via AEM Content Fragment Component
Can expose data to 3rd party services as JSON
Capture pure data (separated from the presentation)
Content fragment component can be created under assets (parent node must have a config that allows content fragments)
Editing content fragment model similar to editing metadata schema for asset
Content fragment model -> a definition of data format, Content Fragment -> an instance of content fragment model with all data populated (class -> instance of a class relation).