Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.
SOLVED

Update Template for existing pages

Avatar

Level 2

We have a requirement where the client wants to create new templates and replace the existing templates that are currently mapped to existing pages. We have tried using AEM Launches, which works well for single pages, but not for bulk updates. We are now exploring using a Groovy script. Are there any other methods we can consider?

1 Accepted Solution

Avatar

Correct answer by
Level 10

I have used the ACS Tool in production before, but it was a one-time use. We installed the ACS Tool package, utilized it, and then uninstalled it afterwards.

 

Before performing any actions to manipulate content, it is essential to execute a backup. This is especially true in a production environment and applies regardless of the tool being used, as issues can always arise. Therefore, having a recovery plan is a necessity.

 

 

View solution in original post

8 Replies

Avatar

Community Advisor

Hi @Randeep_virk 

If you have groovy installed then you can use groovy, In my opinion groovy would be the easiest and quickest option.

Arun Patidar

AEM LinksLinkedIn

Avatar

Level 2

okay @arunpatidar 
If you have tried the same do you have any suggestions , like what needs to be keep in mind when we migrate the templates.

Avatar

Community Advisor

Hi @Randeep_virk 

I hope you are using dynamic template, and want to migrate from dynamic template A to dynamic template B.

In this case you need to make sure the cq:template and sling:resourcetype properties are updated with B on the pages.

 

If you are migrating from static template to dynamic template then you need to follow https://opensource.adobe.com/aem-modernize-tools/pages/structure/about.html

Arun Patidar

AEM LinksLinkedIn

Avatar

Level 2

we are migrating dynamic template A to dynamic template B.

Avatar

Level 10

An easy option can be using Resource Type/Template Updater from ACS AEM Tools: it supports updating sling:resourceType and cq:template properties.

Avatar

Level 2

We were considering this as one of our option however in some recommendations we found that we should not use these ACS tools for production environments and they are only for dev related tasks.
Any thoughts on this ? or did you use this and it worked for you ?

Avatar

Correct answer by
Level 10

I have used the ACS Tool in production before, but it was a one-time use. We installed the ACS Tool package, utilized it, and then uninstalled it afterwards.

 

Before performing any actions to manipulate content, it is essential to execute a backup. This is especially true in a production environment and applies regardless of the tool being used, as issues can always arise. Therefore, having a recovery plan is a necessity.

 

 

Avatar

Administrator

@Randeep_virk Did you find the suggestions helpful? If you need more information, please let us know. If a response resolved your issue, kindly mark it as correct to help others in the future. Alternatively, if you discovered a solution on your own, we'd appreciate it if you could share it with the community. Thank you.



Kautuk Sahni