May 13, 2020
Estimated Post Reading Time ~

Creating Content Root to define allowed templates

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.




By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.