A forward-thinking client was looking to future-proof their content management capabilities, seeking flexibility when it came to their AEM components. They wanted to be able to manage events on a calendar but also have the option to author additional event attributes later. They also wanted to create page-specific instructional walkthroughs for users that would contain different steps depending on the site page.
We always encourage clients to think ahead so that we build AEM site and content features that they can use long-term to improve their content creation capabilities so we welcomed this challenge.
Though these two components sound very different, we were able to leverage one AEM feature to build both.
AEM Content Fragments
AEM Content Fragments allow authors to design, create, curate and publish page-independent content. They are created and managed as page-independent assets and allow them to prepare content ready for use in multiple locations and over multiple channels.
What makes Content Fragments incredibly versatile is that they can be delivered in JSON format using the Sling Model (JSON) export capabilities of AEM core components. This means a single Content Fragment can be leveraged to create multiple types of components where the authoring and data is agnostic to the way the component is implemented.
Below, I’ll demonstrate this by using Content Fragments to create the aforementioned Calendar and Walkthrough components.
The simplicity of the implementation model is another of the advantages of using Content Fragments to create AEM components.