Mudanças entre as edições de "Creating Content Root to define allowed templates"

De Basef
Ir para: navegação, pesquisa
(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...')
 
 
(Uma revisão intermediária pelo mesmo usuário não estão sendo mostradas)
Linha 3: Linha 3:
 
'''This will be done in CRXDE Lite:'''
 
'''This will be done in CRXDE Lite:'''
  
1) Create a node named wknd of type cq:Page beneath /content
+
1) Create a node named '''mysite''' of type '''cq:Page''' beneath '''/content'''
  
2) Create a node named jcr:content of type cq:PageContent beneath /content/wknd
+
2) Create a node named '''jcr:content''' of type '''cq:PageContent''' beneath '''/content/mysite'''
  
3) Add the following properties to the newly created jcr:content node:
+
3) Add the following properties to the newly created '''jcr:content''' node:
  
 
+
{| class="wikitable"
cq:allowedTemplates String[] /conf/wknd/settings/wcm/templates/.* Will allow any templates created under the WKND folder to be used
+
!Name
cq:deviceGroups String[] /etc/mobile/groups/responsive
+
!Type
defines the device groups used in Layout Mode. Will use the default settings.
+
!Value
jcr:title String WKND Site title
+
!Description
jcr:primaryType Name cq:pageContent primary node type
+
|-
redirectTarget String /content/wknd/en redirect target
+
|cq:allowedTemplates
 +
|String[]
 +
|/conf/mysite/settings/wcm/templates/.*
 +
|Will allow any templates created under the mysite 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
 +
|My Site  
 +
|title
 +
|-
 +
|jcr:primaryType
 +
|Name
 +
|cq:pageContent
 +
|primary node type
 +
|-
 +
|redirectTarget
 +
|String
 +
|/content/mysite/en
 +
|redirect target
 +
|-
 
sling:redirect Boolean true  
 
sling:redirect Boolean true  
 +
|-
 
sling:redirectStatus Long 302  
 
sling:redirectStatus Long 302  
 +
|-
 
sling:resourceType String foundation/components/redirect will use the Foundation Redirect component to perform the redirect.
 
sling:resourceType String foundation/components/redirect will use the Foundation Redirect component to perform the redirect.
  
  
 
[[Category: Adobe AEM]]
 
[[Category: Adobe AEM]]

Edição atual tal como às 20h12min de 8 de abril de 2018

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 mysite of type cq:Page beneath /content

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

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

sling:redirect Boolean true sling:redirectStatus Long 302 sling:resourceType String foundation/components/redirect will use the Foundation Redirect component to perform the redirect.
Name Type Value Description
cq:allowedTemplates String[] /conf/mysite/settings/wcm/templates/.* Will allow any templates created under the mysite 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 My Site title
jcr:primaryType Name cq:pageContent primary node type
redirectTarget String /content/mysite/en redirect target