Skip to main content
Level 4
Oct 16, 2015 2:28 AM UTC
Solved

allowedparent

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
sandeep_g1Accepted solution
Oct 16, 2015 2:28 AM UTC

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 

1 reply

sandeep_g1Accepted solution
Oct 16, 2015 2:28 AM UTC

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 

Translate