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?

February 15, 2019

Thanks for the speedy response.

Template is enabled as I can see the property (status) as enabled.

I have included property cq:conf with value /conf/<my-folder-name> at jcr:content of a page where I should be able to create page with this template.

I have also included template path (/conf/<my-folder-name>/settings/wcm/templates/<template-name> in cq:allowedTemplates at jcr:content of page.

But still the option to create in siteadmin is not coming.

Should we allow this dynamic template in our project template with property (allowedChildren) ? P.S - I have tried that too.

Thanks,

Rohan

Gaurav-Behl
Level 10
February 15, 2019

I just tested with just these two configurations pointing to 'we-retail' on a random root page and I was able to create a page and it worked fine.

Could you share relevant screenshots?

If you use only single template then you would get only one option as template to create a page from within siteadmin modal.