Store cq:designPath in folder | Community
Skip to main content
selvaganesh
January 15, 2016
Solved

Store cq:designPath in folder

  • January 15, 2016
  • 7 replies
  • 2496 views

Is it possible to store cq:designPath property in a folder and get it for all the pages under that folder

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 leeasling

That is not true.  I'm not talking about duplicating the page component, i'm talking about creating another template node under "apps/<project>/templates.

The "jcr:content" node for the template contains the cq:designPath, so simply copy an existing template and change the name and cq:designPath.  You now have a template for that design.

7 replies

edubey
January 15, 2016

Can you be more specific to your use case and why you want to achieve this...

selvaganesh
January 15, 2016

We have already created folder and want to use common etc design path for all the pages under that folder. Dont want to configure design path for each and every page

edubey
January 15, 2016

When you create project in AEM there is no need to configure design path for each page

How are you creating project?

selvaganesh
January 15, 2016

We use same template for different projects, hence need respective etc design path

January 15, 2016

This isn't something that is supported.

Can you not create a new page template for each design?

selvaganesh
January 15, 2016

If we create another template then we are repeating same code again. We simply want to reuse the same template for all projects. Need some control to store project specific data

leeaslingAccepted solution
January 15, 2016

That is not true.  I'm not talking about duplicating the page component, i'm talking about creating another template node under "apps/<project>/templates.

The "jcr:content" node for the template contains the cq:designPath, so simply copy an existing template and change the name and cq:designPath.  You now have a template for that design.