Mudanças entre as edições de "Commiting Content Root to Source Control"

De Basef
Ir para: navegação, pesquisa
(Criou página com '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...')
 
Linha 5: Linha 5:
  
 
It is located at wknd-sites-guide/ui.apps/src/main/content/META-INF/vault/filter.xml
 
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
 
2) Add a new filter for /content/wknd
Linha 18: Linha 19:
 
</workspaceFilter>
 
</workspaceFilter>
 
</source>
 
</source>
 +
  
 
3) Create two new folders for /content/wknd
 
3) Create two new folders for /content/wknd
  
 
The /content folder should be a sibling of conf and apps
 
The /content folder should be a sibling of conf and apps
 +
  
 
4) Import content from server by Right+Clicking the /content/wknd node
 
4) Import content from server by Right+Clicking the /content/wknd node

Edição das 21h28min de 5 de abril de 2018

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


4) Import content from server by Right+Clicking the /content/wknd node

This should import the content root and any page created from AEM.