Understanding Content Fragments in Adobe Experience Manager
Understanding Content Fragments in Adobe Experience Manager
Introduction
In modern digital experiences, content is often delivered to multiple channels such as websites, mobile applications, smart devices, and APIs. To manage this efficiently, Content Fragments in Adobe Experience Manager allow organizations to create structured, reusable, and channel-independent content.
Content Fragments are a key feature used when implementing Headless CMS architecture, where the backend manages content and the frontend applications consume it through APIs.
What is a Content Fragment?
A Content Fragment is a structured piece of content stored in AEM without being tied to a specific page or layout.
It allows authors to:
-
Create structured content
-
Reuse the same content across multiple channels
-
Deliver content through APIs such as GraphQL
Unlike traditional page content, Content Fragments are pure content without presentation.
Example:
Article Title
Author Name
Description
Image
Publish Date
This content can be reused in websites, mobile apps, or third-party platforms.
Key Components of Content Fragments
1. Content Fragment Model
A Content Fragment Model defines the structure of the content.
Example fields in a model:
-
Text
-
Number
-
Date
-
Boolean
-
Enumeration
-
Reference fields
This ensures consistent content creation across the system.
2. Content Fragment Editor
The Content Fragment Editor allows authors to create and manage content fragments easily.
Features include:
-
Rich text editing
-
Versioning
-
Variations
-
Structured data entry
3. Fragment Variations
Content Fragments support multiple variations of the same content.
Example:
-
Short description
-
Long description
-
Social media version
This helps adapt the same content for different platforms.
Content Fragments vs Experience Fragments
| Feature | Content Fragment | Experience Fragment |
|---|---|---|
| Purpose | Content reuse | Layout reuse |
| Includes layout | No | Yes |
| API delivery | Yes | Limited |
| Use case | Headless CMS | Page section reuse |
Content Fragments are commonly used in headless implementations, while Experience Fragments are used for visual page components.
Delivering Content via APIs
Content Fragments can be exposed through GraphQL APIs in AEM.
Using GraphQL, frontend applications like those built with React or mobile apps can query structured content easily.
Example query:
query {
articleList {
items {
title
description
author
}
}
}
This enables omnichannel content delivery.
Benefits of Content Fragments
1. Headless Content Delivery
Content can be delivered to multiple front-end applications.
2. Reusability
Content can be reused across websites, mobile apps, and digital platforms.
3. Structured Content
Using models ensures consistency.
4. API-first approach
Supports modern development frameworks.
Common Use Cases
Content Fragments are commonly used for:
-
Product descriptions
-
Blog articles
-
News content
-
Marketing campaigns
-
Mobile app content
-
API-driven websites
Best Practices
To use Content Fragments effectively:
-
Design clear Content Fragment Models
-
Use meaningful field names
-
Avoid overly complex models
-
Implement proper folder organization
-
Use GraphQL APIs for efficient delivery
Conclusion
Content Fragments are a powerful feature in Adobe Experience Manager that enable organizations to adopt a headless CMS architecture and deliver content across multiple channels efficiently. By separating content from presentation, businesses can achieve greater flexibility, scalability, and faster content delivery.