cq:isContainer Property in AEM | AEM Community Blog Seeding | Community
Skip to main content
kautuk_sahni
Community Manager
Community Manager
November 17, 2021

cq:isContainer Property in AEM | AEM Community Blog Seeding

  • November 17, 2021
  • 0 replies
  • 1153 views

BlogImage.jpg

cq:isContainer Property in AEM by Arun Patidar

Abstract

cq:isContainer Property in AEM
It’s a common use case to create components that include other components. These components are called “Container Components” e.g. parsys, etc and are denoted by adding cq:isContainer="{Boolean}true" as a property on the component.

Why is it important to add cq:isContainer property to container component?
The answer is simple to make sure the component must behave like a container component. You must be thinking what does it even mean? Let's understand this with an example.
I have 3 components, component-container, component-a, component-b
The component structure would be:

component-container
|----- component-a
|----- component-b

i.e.
/apps/weretail/components/demo/component-container/component-container.html
 
What happens if component-container does not have cq:isContainer property

Read Full Blog

cq:isContainer Property in AEM

Q&A

Please use this thread to ask the related questions.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.