Few days back I was doing one POC on creating a specialised container component that will accept only some specific component inside it.
Earlier we used to do the same task with the help of /etc/design, after introduction of the policies in AEM we hava a totally different and easy way to handle the scenario.
Only limited article is available online on the same, that guides step by step.
Let’s discuss the policy first in AEM.
In AEM we have two types of policies in ui-app, one is for template and another is for component.
Template policies normally resides in /conf/your-project/settings/wcm/policies/wcm/foundation/components/responsivegrid path and component policies normally resides in /conf/your-project/settings/wcm/policies/your-project/components path if your component is structured like /apps/your-project/components/content in /apps .
Now coming to the implementation part.
Read Full Blog
Please use this thread to ask the related questions.