Restrict a component from being added to a parsys | Community
Skip to main content
Level 2
July 16, 2023

Restrict a component from being added to a parsys

  • July 16, 2023
  • 2 replies
  • 1046 views

Helo All,

I need to restrict a custom components being added to a parsys in 6.5x  something similar to "allowedParents" for templates.This component should only be allowed inside a container. Any suggestions would help.

 

Thanks and Regards

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

krishkerAuthor
Level 2
July 17, 2023

Thank u @sivakumarkanoori  , but unable to access the links mentioned in the answer of the abve url . is it broken ..?

 

Mahedi_Sabuj
Community Advisor
Community Advisor
July 17, 2023

Hi @krishker, For Editable templates, You need to use content policy.

Details: https://myaemlearnings.blogspot.com/2018/03/policies-in-editable-templates.html 

/conf/[project-name]/settings/wcm/templates/[template-name]/policies

<root jcr:primaryType="nt:unstructured" cq:policy="/policy_1553926688246" sling:resourceType="wcm/core/components/policies/mapping" />

 /conf/[project-name]/settings/wcm/policies

<policy_1553926688246 jcr:primaryType="nt:unstructured" jcr:title="Page Container Policy" sling:resourceType="wcm/core/components/policy/policy" components="[group:AEM Content,group:AEM Control]"> <jcr:content jcr:primaryType="nt:unstructured"/> </policy_1553926688246>

 

Mahedi Sabuj