May 19, 2020
Estimated Post Reading Time ~

Using a component with parsys

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 sidekick. 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]
  1. Go to the site admin and open a page that has parsys. On the sidekick click the ruler icon(on the lower toolbar of the sidekick) to enter the design mode.
  2. You'll see an 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 the value for componentGroup property of your component. check the component.
  3. Now press the pencil icon on the footer of sidekick to enter edit mode. you should be able to see the component in the sidekick.
  4. To use it all you have to do is drag and drop it into parsys.
For the sidekick 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.


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.