Allowed parents/ allowed children are these properties applicable for component | Community
Skip to main content
devj81705801
Level 2
Apr 18, 2017 10:04 AM UTC
Solved

Allowed parents/ allowed children are these properties applicable for component

allowedParents / allowedChildren restrictions just don't work for Components. Is it for template level only?

Can you please share the example where we can use allowchildren property at component level.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Feike_Visser1
Feike_Visser1Accepted solution
Employee
Apr 18, 2017 10:26 AM UTC

template level only..

5 replies

yuriy_shestakov
Level 3
Oct 12, 2018 3:32 AM UTC

AEM 6.2, 6.3, 6.4

(doc: Custom Node Types )

cq:Component

  • @prop allowedParents
    Regular expression patterns to determine the path(s) of components that are allowed as parent components.
  • @prop allowedChildren
    Regular expression patterns to determine the path(s) of components that are allowed as child components.

About older versions I don't know, maybe don't support this.

Also, I've tried to use these properties on AEM 6.4 project and it didn't work for components. So, maybe the documentation is wrong.

Translate
devj81705801
Level 2
Apr 19, 2017 3:22 AM UTC

But in adobe doc its written for component too

https://docs.adobe.com/docs/en/cq/5-5/developing/components.html

      

allowedChildren 

 String[]

Path of a component that is allowed to be a child of this component.

 

Translate
devj81705801
Level 2
Apr 19, 2017 3:21 AM UTC

But in Adobe docs its written for component too

https://docs.adobe.com/docs/en/cq/5-5/developing/components.html

      

allowedChildren 

 String[]

Path of a component that is allowed to be a child of this component.

 

Translate
vjetty
Level 4
Apr 18, 2017 2:32 PM UTC

Hi, Dev

Yes, it is for templates only. 

Please read through this documentation for further details. 

https://docs.adobe.com/docs/en/aem/6-2/develop/templates/page-templates-static.html

Thanks,

Vamsi

Translate
Feike_Visser1
Feike_Visser1Accepted solution
Employee
Apr 18, 2017 10:26 AM UTC

template level only..

Translate