AEMaaCS 6.5x
I have a custom component which has a nested Parsys inside. I want to restrict this parsys to only allow Button components to be used. How can I achieve this?
For more context: I have a Hero component which is being re-used on many different pages within the website. On some pages (but not all), the hero is part of the template structure and the content author cannot change this. On other pages, the content author may choose to place the hero on the page if they wish. In all cases, the hero has a parsys where I would like to allow one or more button components to be placed. The website will have multiple types of buttons which can be used: the default proxy of core button, a modal button that opens a modal and plays a video, a notification button that acts as an "add to calendar", etc. The content author should only place any number of buttons inside this parsys, but it needs to be restricted to only allow for buttons.