In Editable Templates you can set a policy to allow components on the Layout Container. I add my component to the allowed components in the Layout Container policy. This component has a parsys which should only allow author to add Text component but author can add any component allowed on the Layout Container. I think this is because the parsys in my component inherits all of the allowed components allowed in the Layout Container.
How can I set the policy for the parsys in my component for Editable Template and not allow author to add components allowed in the Layout Container?
Solved! Go to Solution.
Views
Replies
Total Likes
First, your component should have a cq:designdialog that allows you to configure policy in the editable templates.
You can refer the accordion core component and copy it: /apps/core/wcm/components/accordion/v1/accordion/cq:design_dialog
Now, edit the template and look for your component and there will a option to configure policy. For eg:
Hi @aaldros, if I good understand your case, below steps should allow you to achieve what you want.
And that's all.
First, your component should have a cq:designdialog that allows you to configure policy in the editable templates.
You can refer the accordion core component and copy it: /apps/core/wcm/components/accordion/v1/accordion/cq:design_dialog
Now, edit the template and look for your component and there will a option to configure policy. For eg:
Views
Likes
Replies
Views
Likes
Replies