Hi Guys,
Say a container component has multiple parsys and the requirement here would be to use only some specific components to one of the parsys and the other parsys should allow all components.
sample example:
Also is there a way to auto populate a default component on a parsys?
Solved! Go to Solution.
Views
Replies
Total Likes
This is possible as well, you need to create a cq:template and add editconfig to restrict add or remove those component
you can do it by creating of proxy of parsys where you want to restrict component and create a policy for that with allowed component.
Thanks @arunpatidar, What about auto poplating the parsys with a default component? is that possible?
This is possible as well, you need to create a cq:template and add editconfig to restrict add or remove those component
Hope this is useful
Define a design xml for the page template which might look something like the below xml , (the below xml is basically mocking the node structure of the page.
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0"xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" jcrpimaryType="nt:unstructured">
<par jcrprimaryType="nt:unstructured"
sling:resourceType="/libs/foundation/components/parsys"
components="[project/general/components/<<restrictive-component>>]">
</par>
</jcr:root>
@Jagadeesh_Prakash should we define a separte copy of the template to achive this? Is this reffering to editable template?
@Manu_Mathew_ Yes it is refering to editable templates, This can be done a new template
Have you tried setting up policies [1] for your parsys? Create one policy per parsys and in policy, you can configure a list of components that should be allowed for that parsys.