Tien Nguyen
Tien Nguyen

Reputation: 4358

Can't create cq node when include a CQ5 component

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.

Upvotes: 1

Views: 1176

Answers (2)

Hoa Nguyen
Hoa Nguyen

Reputation: 178

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

Upvotes: 1

santiagozky
santiagozky

Reputation: 2539

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.

Upvotes: 1

Related Questions