Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

allowedparent

Avatar

Level 4

Hi,

I have created 2 templates. One is a parent template and the other a child template. Child templates can only be created under the parent template is it possible to use allowedparents to restrict this, I have tried this but it does not seem to work.

Chris

1 Accepted Solution

Avatar

Correct answer by
Level 1

yes, for eg.

you have parent template T1 and child template T2

add allowedchildren property to T1 with value T2

and add allowedparent property to T2 with value T1.

 

or use cq:allowedTemplates property to content/jcr:content node 

View solution in original post

1 Reply

Avatar

Correct answer by
Level 1

yes, for eg.

you have parent template T1 and child template T2

add allowedchildren property to T1 with value T2

and add allowedparent property to T2 with value T1.

 

or use cq:allowedTemplates property to content/jcr:content node