Solved
Not to allow components inside the container only
- August 5, 2024
- 4 replies
- 1226 views
Hi Team,
I currently have a custom container component structured as follows:
- The container component includes a parsys or responsiveGrid inside it.
When the team adds the container component to a page, the node structure looks like this: ../container/content—this is expected.
Additionally, the team can add components to the parsys or responsiveGrid (content) by clicking the + symbol—this is also expected. However, sometimes components are accidentally dragged and dropped directly into the container node (e.g., ../container/text). These components then become invisible to authors.
Could you guide me on how to use cq:dropTargets to restrict components from being added directly to the ../container node?
Thanks in Advance
Veera