Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

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

AEM LinksLinkedIn

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

AEM LinksLinkedIn

Avatar

Level 4

yes this should work.