How can I include layout container in a component in AEM SPA project implemented in React? | Community
Skip to main content
Level 2
April 13, 2023
Solved

How can I include layout container in a component in AEM SPA project implemented in React?

  • April 13, 2023
  • 1 reply
  • 1337 views

I would like to include Layout container inside a component to allow other components to be added dynamically within the component. How can I achieve this when the component also has its own dialog and the internal components also need to be editable. This was pretty easy to do outside SPA but unable to find a solution using SPA.

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 arunpatidar

You need to write the java code to allow custom container similar to core components, example

https://github.com/arunpatidar02/aemaacs-spa-aemlab/pull/2/commits/16678e231d1a69815e9e8c387e3fad400b2dd1d1#diff-2b4b1e45e84f3dc307d60028db63043ef5e50ca3a5d532d5be94d424aea1b7c0 

 

 

1 reply

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
April 13, 2023
Level 2
April 13, 2023

Thank you @arunpatidar . This works!!