Allowed Paths not working in AEM template editor 6.2 | Community
Skip to main content
Level 2
March 28, 2017
Solved

Allowed Paths not working in AEM template editor 6.2

  • March 28, 2017
  • 3 replies
  • 5499 views

Hi All,

We are trying to restrict editable templates(template editor) on the basis of allowedPaths using template editor in AEM 6.2.

We have added allowedPaths property in /initial/jcr:content node of editable templates. Attached is the screenshot for same.

 

However this is not working for editable templates. It is only working for static templates.

Could you please help us to know if this can be achieved or if it is not supported by template editor.

We have gone through the below adobe link but couldn't find any solution. We don't have to use cq:allowedTemplates property.  

https://docs.adobe.com/docs/en/aem/6-2/develop/templates/page-templates-editable.html

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 rawvarun

Hi Mayank,

This seems to be bug as underlying pageManager.getTemplates(String parentPath) method does not show the editable templates but shows the static template.

Regards,

Varun Rawat

    
cq:allowedTemplates
    
cq:allowedTemplates

3 replies

rawvarun
Community Advisor
rawvarunCommunity AdvisorAccepted solution
Community Advisor
April 6, 2017

Hi Mayank,

This seems to be bug as underlying pageManager.getTemplates(String parentPath) method does not show the editable templates but shows the static template.

Regards,

Varun Rawat

    
cq:allowedTemplates
    
cq:allowedTemplates
abhinash007
Level 2
February 15, 2018

In case of editable template , you have to add allowedPaths property into jcr:content of the template.

LukasF
July 4, 2019

Thanks abhinash007​ for pointing this out. Sadly the documentation about this is unmistakably broken (e.g. here: Templates ) as it states that 'allowedPaths' should be defined on the template instead of 'jcr:content' of the template. Can someone from Adobe initiate that it is fixed?