Commiting Content Root to Source Control
This tutorial will save the content structure into the ui.apps module. In much larger implementations a ui.content maven module is created to fill this purpose and would only contain a baseline of the content structure. For simplicity, save the content structure beneath ui.apps.
1) In Eclipse/filesystem open the filter.xml file
It is located at wknd-sites-guide/ui.apps/src/main/content/META-INF/vault/filter.xml
2) Add a new filter for /content/wknd
Add a new filter for /content/wknd. In order to avoid overwriting content authored in AEM, the mode="merge" attribute is used. The filter.xml should look as follows:
<?xml version="1.0" encoding="UTF-8"?> <workspaceFilter version="1.0"> <filter root="/apps/wknd"/> <filter root="/conf/wknd" mode="merge"/> <filter root="/content/wknd" mode="merge"/> </workspaceFilter>
3) Create two new folders for /content/wknd
The /content folder should be a sibling of conf and apps at wknd-sites-guide/ui.apps/src/main/content/jcr_root
4) Import content from server by Right+Clicking the /content/wknd node
This should import the content root and any page created from AEM.