since ‎04-11-2020
‎12-02-2021
Prashanth96
Level 1
Re: Swapping of template in AEM
Avatar

BrianKasingli

MVP

BrianKasingli
- Adobe Experience Manager
@Prashanth96,One way is by using the AEM groovy console to find all those pages, and update the sling:resourceType, cq:template, you can create a migration script. https://github.com/icfnext/aem-groovy-console The migration script would look something like this: // example of finding all nodes with the sling:resourceType == 'my-site/components/structure/page'; def doMigration() { def queryManager = session.workspace.queryManager def statement = "/jcr:root/content/my-site//*[@sling:resourceType='...

Views

203

Likes

3

Replies

0
Likes given to