Expand my Community achievements bar.

SOLVED

Restrict a particular Component in to the parsys

Avatar

Level 4

Hi

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

1 Accepted Solution

Avatar

Correct answer by
Level 2

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>

View solution in original post

1 Reply

Avatar

Correct answer by
Level 2

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>