Store cq:designPath in folder | Adobe Higher Education
Skip to main content
selvaganesh
Level 5
January 15, 2016
解決済み

Store cq:designPath in folder

  • January 15, 2016
  • 7 の返信
  • 2502 ビュー

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

このトピックへの返信は締め切られました。
ベストアンサー 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 の返信

edubey
Level 10
January 15, 2016

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

selvaganesh
selvaganesh作成者
Level 5
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
Level 10
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
selvaganesh作成者
Level 5
January 15, 2016

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

Level 8
January 15, 2016

This isn't something that is supported.

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

selvaganesh
selvaganesh作成者
Level 5
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

leeasling回答
Level 8
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.