How To Allow/Restrict Component WITHOUT Using Design Mode
I have a component called widget-container
Another component called accordion-item (screenshot below)
[img]widgets.PNG[/img]
widget-container contains a parsys tag (in widget-container.jsp)
accordion-item just contains simple markup for now
My goal/conditions are as follows:
- I will define where widget-container is allowed via design mode
- If an author place a widget-container on the page, then he/she can now drop accordion-item into it
- author can NOT drop accordion-item anywhere else
I tried play around with allowedParents & allowedChildren properties but no luck.
Can my requirements be achieved in CQ5? If yes, how so?