Expand my Community achievements bar.

SOLVED

How to create cq:template nodes programatically

Avatar

Level 3

I have a child component as a multi-field of my parent component, I know I can initialize child component using cq:template but since I dont know how many child components ill add from dialog box, I cant initialize fix number of child components in parents cq:template.

 

 

Any ideas will be helpful. 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

Only Event Lister can help here.

On dialog save i.e. modification/creation, you can add new nodes with default value from cq:template to the content tree.



Arun Patidar

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hi,

Only Event Lister can help here.

On dialog save i.e. modification/creation, you can add new nodes with default value from cq:template to the content tree.



Arun Patidar