Expand my Community achievements bar.

Unable to add components inside Custom Layout Container

Avatar

Level 3

Hello,

We are trying to create custom Layout Container(wcm/foundation/components/responsivegrid) component and allow some components to add inside it.

Below are the steps:
1. Created a new "Custom Layout Container" component and given it's superType as

sling:resourceSuperType="/libs/wcm/foundation/components/responsivegrid"

 2. Added the policy in the template for this new Custom Layout Container to add components inside it.

aemuser2021_1-1697712237058.png

 

aemuser2021_2-1697712318050.png

 


The problem I'm facing is, after adding this new "Layout container" on a page, not able to add any other components inside it. It does not have any height (which ootb layout container has and "Drag Components here" is also not coming.

aemuser2021_0-1697712070743.png

 

Has anyone experienced this issue? 


Thankyou.

5 Replies

Avatar

Community Advisor

hello @aemuser2021 

 

Cab you please try by using "core/wcm/components/container/v1/container" as the "sling:resourceSuperType" ?

 

 


Aanchal Sikka

Avatar

Level 3

Hey @aanchal-sikka 

Tried changing the resourceSuperType as "core/wcm/components/container/v1/container" as well but facing the same issue.

Avatar

Community Advisor

@aemuser2021 

 

Have you also tried by creating a new page?


Aanchal Sikka

Avatar

Administrator

@aemuser2021  Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.



Kautuk Sahni