Creating Content Root to define allowed templates

De Basef
Revisão de 20h08min de 8 de abril de 2018 por Admin (discussão | contribs) (Criou página com 'Before pages can be authored through the UI, a content root needs to be set up for your project. The content root will define the allowed templates for the site and is used to...')

(dif) ← Edição anterior | Revisão atual (dif) | Versão posterior → (dif)
Ir para: navegação, pesquisa

Before pages can be authored through the UI, a content root needs to be set up for your project. The content root will define the allowed templates for the site and is used to set other global configurations. By convention the content root is not intended to be the Home page for the site and instead will redirect to the true home page.

This will be done in CRXDE Lite:

1) Create a node named wknd of type cq:Page beneath /content

2) Create a node named jcr:content of type cq:PageContent beneath /content/wknd

3) Add the following properties to the newly created jcr:content node:


cq:allowedTemplates String[] /conf/wknd/settings/wcm/templates/.* Will allow any templates created under the WKND folder to be used cq:deviceGroups String[] /etc/mobile/groups/responsive defines the device groups used in Layout Mode. Will use the default settings. jcr:title String WKND Site title jcr:primaryType Name cq:pageContent primary node type redirectTarget String /content/wknd/en redirect target sling:redirect Boolean true sling:redirectStatus Long 302 sling:resourceType String foundation/components/redirect will use the Foundation Redirect component to perform the redirect.