Allowed parents/ allowed children are these properties applicable for component | Community
Skip to main content
devj81705801
Level 2
April 18, 2017
Solved

Allowed parents/ allowed children are these properties applicable for component

  • April 18, 2017
  • 5 replies
  • 10690 views

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

template level only..

5 replies

Feike_Visser1
Adobe Employee
Feike_Visser1Adobe EmployeeAccepted solution
Adobe Employee
April 18, 2017

template level only..

vjetty
Level 4
April 18, 2017

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

devj81705801
Level 2
April 19, 2017

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.

 

devj81705801
Level 2
April 19, 2017

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.

 

yuriy_shestakov
Level 3
October 12, 2018

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.