ui.content Module of the AEM Project Archetype
The ui.content maven module (
<src-directory>/<project>/ui.content) includes baseline content and configurations beneath
/conf. ui.content gets compiled into an AEM package much like ui.apps. The major difference is that the nodes stored in ui.content can be modified on the AEM instance directly. This includes pages, DAM assets, and editable templates. The ui.content module can be used to store sample content for a clean instance and/or to create some baseline configurations that are to be managed in source control.
filter.xmlfile for the ui.content module is found at
<src>/<project>/ui.content/src/main/content/META-INF/vault/filter.xmland contains the paths that will be included and installed with the ui.content package. Notice that a
mode="merge"attribute is added to the path. This ensures that the configurations deployed with a code deployment do not automatically override content or configurations that have been authored on the AEM instance directly.
The ui.content module, like the ui.apps module, uses the FileVault Package plugin. However the ui.content pom (
<src>/<project>/ui.content/pom.xml) includes an extra configuration property called
acHandling, set to
merge_preserve. This is included because the ui.content module includes Access Control Lists (ACLs) which are permissions, which determine who can edit the templates. In order for these ACLs to be imported into AEM the
acHandlingproperty is needed.