Expand my Community achievements bar.

SOLVED

how to change the page name using groovy in AEM?

Avatar

Level 5

Hi,

How can we change the page name property using groovy in AEM,

As the Page name is used in various places and in URl's , I want to know if there is any way to do it via groovy and if not what other ways are there

 

Thank you

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

You need to use Page Manger java api in groovy to move page, this will allow you the option to adjust the references as well.

 

https://developer.adobe.com/experience-manager/reference-materials/6-5/javadoc/index.html?com/day/cq... 

 

 



Arun Patidar

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

Hi,

You need to use Page Manger java api in groovy to move page, this will allow you the option to adjust the references as well.

 

https://developer.adobe.com/experience-manager/reference-materials/6-5/javadoc/index.html?com/day/cq... 

 

 



Arun Patidar

Avatar

Level 5

Thank you for the ans @arunpatidar 

 

Can you show me with an example how to do it , it would be of great help 

 

Thank you