how to change the page name using groovy in AEM? | Community
Skip to main content
Level 4
November 23, 2022
Solved

how to change the page name using groovy in AEM?

  • November 23, 2022
  • 1 reply
  • 1733 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

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/wcm/api/PageManager.html 

 

 

1 reply

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
November 23, 2022

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/wcm/api/PageManager.html 

 

 

Arun Patidar
Level 4
November 23, 2022

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