Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
SOLVED

Store cq:designPath in folder

Avatar

Level 6

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

1 Accepted Solution

Avatar

Correct answer by
Level 8

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.

View solution in original post

7 Replies

Avatar

Level 10

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

Avatar

Level 6

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

Avatar

Level 10

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

How are you creating project?

Avatar

Level 6

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

Avatar

Level 8

This isn't something that is supported.

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

Avatar

Level 6

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

Avatar

Correct answer by
Level 8

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.