Mudanças entre as edições de "Creating Content Root to define allowed templates"
De Basef
(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...') |
|||
Linha 3: | Linha 3: | ||
'''This will be done in CRXDE Lite:''' | '''This will be done in CRXDE Lite:''' | ||
− | 1) Create a node named | + | 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/ | + | 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/ | + | !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 | + | !Description |
− | jcr:primaryType Name cq:pageContent primary node type | + | |- |
− | redirectTarget String /content/ | + | |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 das 20h11min 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:
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 |