Dynamic Template | AEM 6.4 | Community
Skip to main content
February 14, 2019

Dynamic Template | AEM 6.4

  • February 14, 2019
  • 1 reply
  • 3641 views

Hi,

I created a dynamic template under /conf/<template-name>/settings/wcm. And it is working properly. In order to create a page with this template in my project, i have given the path (/conf/<template-name>/settings/wcm/templates/<template-name>) to cq:allowedTemplates property in page properties of a desired hierarchy. But it is not showing in siteadmin or sites.html option when creating a page.

Please suggest some solution or any configuration that i might be missing.

arunpatidar26

Thanks,
Rohan

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Gaurav-Behl
Level 10
February 14, 2019

Did you apply 'cq:conf' property on the root page pointing to your /conf/<site> path ?

Another thing, if you've multiple templates in /conf then use a regex  /conf/<site>/settings/wcm/templates/* for cq:allowedTemplates

Is that template active/enabled?

perfecci0nista
Level 2
February 15, 2019

Do we need cq:conf property or is it optional. I dont see that on my root page and I am able to create page with my new template.

Gaurav-Behl
Level 10
February 15, 2019

you would still be able to create a page without using cq:conf property on root because you are directly pointing to your template path be it anywhere in the repo but for a true 'context aware' setup, you'd need this property

check -

Apache Sling :: Apache Sling Context-Aware Configuration

AEM /conf and ConfMgr - Adobe Experience Manager | AEM/CQ | Apache Sling