Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Copy and paste pages with deprecated template


Level 4


We are on AEM 6.2 SP1. We recently deprecated some templates and we changed the allowedPaths on the template so that they wont be available on our site paths.

Our users are not liking it as there are many pages associated with those templates and when they try to Copy and Paste those pages, it wont work.

Is there a way we can not show these templates while page is getting created but it can be copy pasted when needed?


2 Replies


Level 10

I do not think AEM Supports this level of functionality. If the static template allowed paths setting is not valid - you cannot make it valid when you attempt to copy and paste an AEM page.

PS - A lot of the AEM community are using Editable Templates.


Community Advisor

temporary workaround:

Use a higher 'rank' value to push it down to the bottom or just tweak these properties:

allowedChildren String[]Path of a template that is allowed to be a child of this template.
allowedParents String[]Path of a template that is allowed to be a parent of this template.
allowedPaths String[]Path of a page that is allowed to be based on this template.
ranking LongRank of the template. Used to display the template in the User Interface.

Obviously, you could always use a javascript snippet to hide these templates in the dialog