Hi Community i'm trying to deactivate some templates without making changes on the users permissions, I try with the allowedPaths property (for instance using a regex like this: /b/B) but I got an issue, if we copy and paste (on the same path) one page of one of the templates with the restriction on the allowedPaths property you can by-pass the restriction and you will be able to have pages on undesire paths. Any idea of what can I do to fix this? or something new to deactivate templates without modifying the users permissions?
Thanks in advance.
K.
Solved! Go to Solution.
Ok - you are not using a Template Editor. You are creating a template using CRXDE lite then.
If you did use a template editor to create a template, (and assuming that the user has the correct permission to disable a template), then the user can disable it by using the toolbar at the top of the Template view - such as:
If you create the template in CRXDE lite - then you cannot disable in this manner.
(PS - for those reading this thread - we will have some detailed articles coming with 6.3 that shows exactly how to use Template Editor to create editable template and how to enable and disable).
If you look at this doc topic - with static templates - there is no way to disable like you can with editable templates:
https://docs.adobe.com/docs/en/aem/6-2/develop/templates/page-templates-static.html
Views
Replies
Total Likes
Are you referring to editable templates created by using the AEM Template Editor?
Sorry I forget mention that my templates were created on AEM 6.0, now I'm using 6.2, but answering your question, no, I didn't use the Template Editor to create those old templates.
Views
Replies
Total Likes
After experimenting with this - the user whom works with a template needs permissions to access it.
Views
Replies
Total Likes
Yes the users have the privileges to use templates, this is why I want to deactivate one specific template without made any changes to the user permissions.
Views
Replies
Total Likes
Ok - you are not using a Template Editor. You are creating a template using CRXDE lite then.
If you did use a template editor to create a template, (and assuming that the user has the correct permission to disable a template), then the user can disable it by using the toolbar at the top of the Template view - such as:
If you create the template in CRXDE lite - then you cannot disable in this manner.
(PS - for those reading this thread - we will have some detailed articles coming with 6.3 that shows exactly how to use Template Editor to create editable template and how to enable and disable).
If you look at this doc topic - with static templates - there is no way to disable like you can with editable templates:
https://docs.adobe.com/docs/en/aem/6-2/develop/templates/page-templates-static.html
Views
Replies
Total Likes
Views
Likes
Replies