where are the content fragment models stored in aem

AEM Content Fragments: Where Stored?

By Sarah Thomas
AD

AEM (Adobe Experience Manager) is a robust CMS that allows businesses to create, manage, and deliver content across various channels. When it comes to content fragments, many users wonder where they are stored within the AEM ecosystem. Understanding the location of these components is crucial for managing and leveraging them effectively.

Content fragments in AEM are not stored in the traditional file system like other data. Instead, they are stored in a repository, which is a NoSQL database called Apache Jackrabbit, integrated within Adobe CQ. This Acts as the content storage layer of AEM, storing all the content in a structured and hierarchical manner.

Understanding the AEM Repository

The AEM repository is a content store that holds all the content for AEM. It's based on the JCR (Java Content Repository) specification and uses Apache Jackrabbit as its implementation. Understanding the repository's structure is key to locating content fragments.

AD
the business model for content marketing
the business model for content marketing
content matrix
content matrix
the 3 part framework for content distribution
the 3 part framework for content distribution

At its core, the repository is a hierarchical tree structure where each node represents a piece of content. These nodes can be files, folders, or even other nodes. Each node has properties, which are name-value pairs that store metadata about the content.

Content Fragment Node Structure

Content fragments are represented as nodes within the repository. The node's path is typically structured as /content/dam/fragments/{fragment-name}, where {fragment-name} is the name given to the fragment during creation. The /content/dam path is the content directory within the AEM repository.

MCP (Model Context Protocol) Explained Simply
MCP (Model Context Protocol) Explained Simply
A Gentle Introduction to Deep Learning Caption Generation Models - MachineLearningMastery.com
A Gentle Introduction to Deep Learning Caption Generation Models - MachineLearningMastery.com
the peso model for social media is shown in blue ink on a white background
the peso model for social media is shown in blue ink on a white background

Each content fragment node has various properties, including the fragment's title, path, template, and content. The content property stores the actual JSON structure of the fragment, which is a hierarchical mapping of the fragment's fields.

Content Fragment Templates

Content fragments are created using templates, which define the structure and behavior of the fragment. The template node is child of the /conf/global/settings/dam/cpquantum/templates path. Each template has properties that define its title, content, and other configuration details.

AD

The content property of a template node stores a JSON structure that defines the fields and behaviors of the fragment. This structure is used to validate and render the content of the fragment at author and publish time.

Bridging known and unknown dynamics by transformer-based machine-learning inference from sparse observations - Nature Communications
Bridging known and unknown dynamics by transformer-based machine-learning inference from sparse observations - Nature Communications
Creating Detailed 3D Models from Images: How AI Frameworks are Changing the Game
Creating Detailed 3D Models from Images: How AI Frameworks are Changing the Game
Subscribe for SEO growth!
Subscribe for SEO growth!
Hybrid spatiotemporal modeling of nutrient cycling in wetland ecosystems using advanced mapping techniques and machine learning approaches - Scientific Reports
Hybrid spatiotemporal modeling of nutrient cycling in wetland ecosystems using advanced mapping techniques and machine learning approaches - Scientific Reports
social media Addiction
social media Addiction
The case against efficiency: friction in social media - npj Complexity
The case against efficiency: friction in social media - npj Complexity

Accessing Content Fragments in the Repository

While the repository provides the storage layer for content fragments, it's not the primary way to interact with them. AEM provides a user interface and APIs for creating, managing, and using content fragments.

The AEM Touch-UI provides a dedicated user interface for content fragments, located under Tools > Assets > Content Fragments. Here, you can create, edit, and preview content fragments. Similarly, the AEM Classic UI provides a Content Fragments tool for creating and managing fragments.

AD

Using Content Fragments API

AEM also provides a RESTful API for interacting with content fragments. The API allows you to perform CRUD operations on fragments, as well as operations specific to content fragments, such as activation and deactivation. The API documentation provides examples of how to use the API to create, retrieve, update, and delete content fragments.

a woman with black hair and white gloves on her head is wearing a mask over her face
a woman with black hair and white gloves on her head is wearing a mask over her face
Content Curation: What Does it Mean? A Quick Guide to an Underused Tactic
Content Curation: What Does it Mean? A Quick Guide to an Underused Tactic
For your SMMA client.
For your SMMA client.

For example, to retrieve a content fragment using the API, you would send a GET request to the /api/assets/{path} endpoint, where {path} is the path of the fragment within the repository.

Searching and Filtering Content Fragments

AEM also provides search capabilities for quickly finding content fragments within the AEM UI. The modern search bar at the top of the user interface allows you to search for fragments by title, tag, or other properties. You can also use the advanced search dialog to search for fragments based on more complex criteria.

AD

Additionally, AEM's Oak search library provides a powerful querying capability for searching and filtering content fragments. This can be particularly useful for building custom components that need to fetch content based on specific criteria.

In conclusion, understanding the location of content fragments in AEM is not about finding them in a physical file system. Instead, it's about understanding the hierarchical structure of the AEM repository and the role played by content fragments within that structure. With this understanding, you can effectively manage and leverage content fragments within your AEM projects.

AD