Restrict a particular Component in to the parsys | Community
Skip to main content
Ricky99999
Level 4
October 25, 2017
Solved

Restrict a particular Component in to the parsys

  • October 25, 2017
  • 1 reply
  • 1499 views

Hi

    I have 10 components and i want to restrict a particular component to the parsys is it possible 

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

Yes , it is possible. 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>

1 reply

Kashyap_PAccepted solution
Level 2
October 25, 2017

Yes , it is possible. 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>