Using a component with parsys

By | 09:36 Leave a Comment

This post is continuation of my previous post : Creating a CQ5 component

After you have created a component, the next thing to do is to configure the component to be used with a parsys. Once configured the component will appear in the side kick. The content authors can then drag the component onto the page.


  • If your page doesn't have a parsys, go to the page component and add this line in its body
 <cq:include path="par" resourceType="/libs/foundation/components/parsys"/>
[value of path can be anything, its the path under which all the nodes for the components dropped into the parsys will be stored]

  • Go to site admin and open a page that has parsys. In the side kick click the ruler icon(on the lower tool bar of the side kick) to enter the design mode.
  • You'll see a edit bar above the parsys, click on edit and you will see a list of component groups. Look for the name that you had given as value for componentGroup property of your component. check the component.
  • Now press the pencil icon on the footer of side kick to enter edit mode. you should be able to see the component in the side kick.
  • To use it all you have to do is drag and drop it into parsys.
For the side kick to appear you must have included 'init.jsp' in your page component.Add
 <cq:include script="/libs/wcm/core/components/init/init.jsp"/>
to the page component and you should be able to see the side kick.

0 comments:

Post a Comment