allowedparent | Community
Skip to main content
Level 4
October 16, 2015
Solved

allowedparent

  • October 16, 2015
  • 1 reply
  • 808 views

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.
Best answer by sandeep_g1

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
October 16, 2015

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