Content fragments (CF) in AEM allow authors to design, create, and publish page-independent content without visual design and/or layout. Therefore, authors can use them to prepare content that can be reused in multiple locations and channels, which is ideal for headless delivery or reuse across pages. The CF reference AEM core component enables simple referencing and using the CF data on a page, while GraphQL and/or REST APIs enable headless content delivery. The new CF editor was recently introduced by Adobe to enhance the authoring experience for structured content. It can be accessed from the new CF console and offers a few interesting new features:
Tree navigation feature with a hierarchical view of the CFs structure to allow authors to easily navigate and edit CFs efficiently
Improved authoring interface with features such as auto-save and breadcrumbs for navigating back in referenced CF structures
Supports the same CF model fields as the classic editor, allowing for the creation of structured content with predefined data types
Preview URL link that (if configured) enables authors to preview how the CF data would look on a page
Toggle button to enable authors to easily switch between the new CF editor and the classic editor
Enables, but purposefully limits customizations and extension points available
While it is a natural choice for greenfield AEMaaCS projects, switching to the new CF editor may not be a simple task for older projects with many customizations in place. Therefore, in this article, we'll present the benefits of switching to the new CF editor, warn customers about potential customization limitations, and explain how to get around them.
Key Points
In the article, we explore the following topics:
New CF Console - navigate through complex CF structures without mixing them with other types of assets
New CF Editor - more powerful, author-friendly, and optimized for omnichannel content delivery
CF Model Editor - the model editor hasn't changed, but some customizations might not work in the new editor
Extensions - extension support so developers can enhance the authoring experience with custom plugins deployed to Adobe IO, covering and explaining the limitations, and what is possible to customize
Custom Fields - an example of how to define a custom field that replaces the OOTB field defined in the model
Nested multifield - advice for (not) developing it and looking into alternative approaches