Expand my Community achievements bar.

SOLVED

Allowed Paths not working in AEM template editor 6.2

Avatar

Level 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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

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

Avatar

Level 2

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

Avatar

Level 1

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?