Question

I use below code to include help component to my page.

 <cq:include path="help" resourceType="/apps/me/components/nav/help" />

The page display ok but when i check

crx/de/index.jsp

I can't find 'help' node in the repository. After that i open the page and edit help component, check CRX again and i found 'help' node was created. Is it possible if we create 'help' node without edit itself.

Was it helpful?

Solution

As explained in this answer about preloading a parsys with components. You can use a Page template.

You probably used the siteadmin to create that page using a template. You just need to add to the template definition any node that needs to be copied into a page when it is created.

OTHER TIPS

You can check if the node is define yet. If the node is not define, you must create it.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top