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
Solved! Go to Solution.
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 |
Views
Replies
Total Likes
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 |
Views
Replies
Total Likes
In case of editable template , you have to add allowedPaths property into jcr:content of the template.
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?
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies