Expand my Community achievements bar.

SOLVED

JCR:Node is not appearing for cq:included component in AEM 6.2.

Avatar

Level 3

When creating a new page using the template which has many cq:included components doesn't create the nodes in jcr:content repository for the same components.

so when i am targeting a component , it shows an error that component node is not defined and not able to target but when i edit the component then it creates the node and targeting is working fine. This is the behaviour in AEM 6.2 wherever when checking the same in CQ5 even without editing the component or without having the nodes , it allows the component to target.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi ranjnak64657715

  That is the way the components work. When you include a component on your template , until unless you author it for atleast once (atleast you open dialog and close once) it will not create a node . But when you have a parsys and you drag and drop the components , a corresponding  node will be created immediately when the component is dropped to the parsys.  Let me know if you need anymore info

     What you can do to fix this is add the nodes for your components under your corresponding template. Doing so , it will always create the component node , when you create your page

1331503_pastedImage_0.png

1331507_pastedImage_1.png

Thanks

Veena

View solution in original post

2 Replies

Avatar

Level 10

Can you show the syntax you are using.

Avatar

Correct answer by
Community Advisor

Hi ranjnak64657715

  That is the way the components work. When you include a component on your template , until unless you author it for atleast once (atleast you open dialog and close once) it will not create a node . But when you have a parsys and you drag and drop the components , a corresponding  node will be created immediately when the component is dropped to the parsys.  Let me know if you need anymore info

     What you can do to fix this is add the nodes for your components under your corresponding template. Doing so , it will always create the component node , when you create your page

1331503_pastedImage_0.png

1331507_pastedImage_1.png

Thanks

Veena