How to always allow a same component to a parsys? | Community
Skip to main content
GK-007
Level 9
March 16, 2016
Solved

How to always allow a same component to a parsys?

  • March 16, 2016
  • 4 replies
  • 1318 views

Hi All,

I have requirement that for a particular parsys every time same component  is used.As soon as i create a page with a template page,my page should come with that component.

I know we can do it by going in design mode but since we know what component is used i want to handle it in component rendering script.

Is there any way to do so??

Thanks,

Kishore

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 edubey

AEM refers to these as boiler plates templates:

Documenation: https://docs.adobe.com/docs/en/cq/5-6-1/developing/boilerplates.html

Example article: http://adobeaemclub.com/creating-page-boilerplate-nodes/

4 replies

Level 4
March 16, 2016
GK-007
GK-007Author
Level 9
March 16, 2016

Steve Cave wrote...

You do that like this: 

https://docs.adobe.com/docs/v5_1/html-resources/cq5_howto_website/ch01s12.html

 

The above link let's how to create a parsys,i know that.

Generally parsys are place holders for components.I know on a particular place of parsys there is always specific component is used.

As soon as i create a page that parsys renders with that automatically!!! so i will not go again to design mode to select the required component.

Thanks,

Kishore

Kunal_Gaba_
March 16, 2016

You can add the parsys node with the component node under your page template cq:template. With this whenever you will create a new page the node structure under the template node will be copied as it is under the page node. And when you open the page for editing you will see the component included in the parsys. 

See the following thread for more details - http://stackoverflow.com/questions/22392147/cq5-preload-a-parsys-with-components

edubey
edubeyAccepted solution
Level 10
March 17, 2016