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

De Basef
Ir para: navegação, pesquisa
 
Linha 2: Linha 2:
  
  
1) In Eclipse/filesystem open the filter.xml file
+
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
+
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'''
  
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:
+
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:
  
 
<source lang="xml">
 
<source lang="xml">
Linha 21: Linha 21:
  
  
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''' at '''wknd-sites-guide/ui.apps/src/main/content/jcr_root'''
  
  
4) Import content from server by Right+Clicking the /content/wknd node
+
4) Import content from server by Right+Clicking the '''/content/wknd''' node
  
 
This should import the content root and any page created from AEM.
 
This should import the content root and any page created from AEM.
  
 
[[Category: Adobe AEM]]
 
[[Category: Adobe AEM]]

Edição atual tal como às 21h30min 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 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.