Chapter 3 of the AEM Headless tutorial covers creating and authoring Events Content Fragments from the Content Fragment Model created in Chapter 2.
With an Event Content Fragment Model created and the AEM Configuration for WKND applied to the /content/dam/wknd-mobile
Asset folder (via the cq:conf
property), a Event Content Fragment can be created.
Content Fragments, which are a type of Asset, should be organized and managed in AEM Assets just like other assets.
In this step, well create a new Event for Punkrock Fest
in the /content/dam/wknd-mobile/en/events
assets folder.
Navigate to AEM > Assets > Files > WKND Mobile > English and create Asset folders Events.
Within Assets > Files > WKND Mobile > English > Events create a new Content Fragment of type Event with a title of Punkrock Fest.
Author the newly created Event Content Fragment.
Tap Save in the top action bar to save changes.
Using AEM’s Package Manager, install the package below on AEM Author. This package contains a number of Event Content Fragments.
Get File: GitHub > Assets > com.adobe.aem.guides.wknd-mobile.content.chapter-3.zip
This section is informational only and meant to socialize the underlying JCR structure of Content Fragments made from Content Fragment Models.
cq:model
that points to the Event Content Fragment Model definition.
cq:model
= /conf/settings/wknd-mobile/dam/cfm/models/event
data
node select the master node and review the properties. This node contains the content collected during the authoring of an Event Content Fragment Model. The JCR property names correspond to the Content Fragment Model property name’s, and the values correspond to the authored values of the “Punkrock Fest” Event Content Fragment.It is recommended, you install the com.adobe.aem.guides.wknd-mobile.content.chapter-3.zip content package on AEM Author via AEM’s Package Manager. This package contains the configurations and content outlined in this and preceding chapters of the tutorial.