Content Fragments are a content abstraction in AEM that allows text-based content to be authored and managed independently of the channels it supports.

Note:

The AEM Content Fragment functionality covered in these videos was first introduced in AEM 6.3 + FP 19008 and FP19614

For information about prior AEM versions' Content Fragments capabilities, see Using Content Fragments in AEM 6.3.

AEM Content Fragments are text-based editorial content that may include some structured data elements associated but considered pure content without design or layout information. Content Fragments are typically created as channel-agnostic content, that is intended to be used and re-used across channels, which in turn wrap the content in a context-specific experience.

This video series covers the end-to-end life-cycle of Content Fragments in AEM, from definition to delivery.

  1. Enabling and defining Content Fragment Models
  2. Authoring Content Fragments
  3. Downloading Content Fragments
  4. Using Content Fragments on web pages
  5. Exposing Content Fragments as JSON using AEM Content Services

Defining Content Fragment Models


AEM Content Fragments Models, the data schemas of Contnet Fragments, must be enabled via AEM's Configuration Browser, which allows Content Fragment Models to be defined on a per configuration basis.

Authoring Content Fragments


AEM Configurations must be applied to AEM Assets folder hierarchies to allow their Content Fragment Models to be created as Content Fragments. Content Fragments support a rich form-based authoring experience allowing content to be modeled as a collection of elements.

Content Fragments can have multiple variants, each variant addressing a different use-case (thought, not necessarily channel) for the content.

Downloading Content Fragments


AEM Content Fragments can be downloaded from AEM Author as a Zip file containing Variants, Elements, and Metadata.

Using Content Fragments in Web pages


Content Fragments can be used on AEM Sites pages, or in a similar fashion, Experience Fragments, using the AEM WCM Core Components' Content Fragment component.

Content Fragment components can be styled using AEM's Style System to display the content as needed.

Exposing Content Fragments as JSON


AEM Content Services facilitates the creation of AEM Page-based HTTP end-points that rendition content into a normalized JSON format.

Supporting materials

To download and install the package below on an AEM 6.4+ instance for the final state from the video series.

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy