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
BedrockMission!

Learn More

View all

Sign in to view all badges

Copy and paste pages with deprecated template

Avatar

Avatar
Validate 1
Level 3
trc41594544
Level 3

Likes

16 likes

Total Posts

43 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile

Avatar
Validate 1
Level 3
trc41594544
Level 3

Likes

16 likes

Total Posts

43 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile
trc41594544
Level 3

16-04-2019

Hi,

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?

Thanks

Replies

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,408 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,408 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

16-04-2019

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.

Avatar

Avatar
Establish
MVP
Gaurav-Behl
MVP

Likes

248 likes

Total Posts

1,147 posts

Correct Reply

283 solutions
Top badges earned
Establish
Give back 300
Give Back 50
Give Back 5
Give Back 3
View profile

Avatar
Establish
MVP
Gaurav-Behl
MVP

Likes

248 likes

Total Posts

1,147 posts

Correct Reply

283 solutions
Top badges earned
Establish
Give back 300
Give Back 50
Give Back 5
Give Back 3
View profile
Gaurav-Behl
MVP

16-04-2019

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