Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

How to create cq:template nodes programatically

Avatar

Level 2

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.

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.