Allowed Paths not working in AEM template editor 6.2 | Community
Skip to main content
Level 2
Mar 28, 2017 7:27 AM UTC
Solved

Allowed Paths not working in AEM template editor 6.2

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.
rawvarun
rawvarunAccepted solution
New Participant
Apr 6, 2017 5:58 AM UTC

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

LukasF
New Participant
Jul 4, 2019 10:50 AM UTC

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?

Translate
abhinash007
Level 2
Feb 15, 2018 6:54 PM UTC

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

Translate
rawvarun
rawvarunAccepted solution
New Participant
Apr 6, 2017 5:58 AM UTC

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
Translate