Simply way to change many page URLs? | Community
Skip to main content
steveatvisa
Level 2
Aug 23, 2018 5:28 PM UTC
Solved

Simply way to change many page URLs?

Hi, we need to change a product name within a URL, e.g.  OLD-product-name.html to NEW-product-name.html. We have a lot of nodes and it looks like we need to manually edit and re-publish hundreds of files. Apparently we can't roll out the changes - we have to edit each node separately. Is there a simple built-in method, script or batch that can accomplish the task and keep the inheritances in AEM 6.3? Thanks in advance!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
New Participant
Aug 23, 2018 5:58 PM UTC

Hi,

This can be achieved by doing Page Move, once page move/rename is done new page will be published and old page deactivate automatically.

Creating and Organizing Pages

Though you can automate by creating utility/servlet and do page move using PageManager API or JCR Session API.

PageManager ("The Adobe AEM Quickstart and Web Application.") 

Session (Content Repository for Java Technology API Version 2.0)

Arun Patidar

8 replies

arunpatidar
New Participant
Aug 24, 2018 12:20 AM UTC

Hi Scott,

I've written a sample servlet to rename a page using PageManager API.

aem63app-repo/MovePageServlet.java at master · arunpatidar02/aem63app-repo · GitHub

Translate
Arun Patidar
steveatvisa
Level 2
Aug 23, 2018 6:27 PM UTC

Translations may be an issue. Thanks again for your help!

Translate
arunpatidar
New Participant
Aug 23, 2018 6:24 PM UTC

Hi,

With the help of APIs you can change many nodes in a one go. But it is depends how your content is structured and what would be the criteria to filter out pages programatically which needs to be renamed.

Translate
Arun Patidar
steveatvisa
Level 2
Aug 23, 2018 6:18 PM UTC

Arun, would that method allow us to change many files across different nodes? Or would we edit each file individually?

Translate
steveatvisa
Level 2
Aug 23, 2018 6:05 PM UTC

I'm kind of a newbie so I wouldn't recognize the correct answer. I will pass your suggestions along to our IT team. Thanks for your help, please let me know if you have any more recommendations on this topic.

Translate
smacdonald2008
Level 10
Aug 23, 2018 6:00 PM UTC

That is exactly what i was thinking. This use case may make a really good HELPX article.

Translate
arunpatidar
arunpatidarAccepted solution
New Participant
Aug 23, 2018 5:58 PM UTC

Hi,

This can be achieved by doing Page Move, once page move/rename is done new page will be published and old page deactivate automatically.

Creating and Organizing Pages

Though you can automate by creating utility/servlet and do page move using PageManager API or JCR Session API.

PageManager ("The Adobe AEM Quickstart and Web Application.") 

Session (Content Repository for Java Technology API Version 2.0)

Translate
Arun Patidar
smacdonald2008
Level 10
Aug 23, 2018 5:57 PM UTC

This may be possible working with the PageManager API. There are methods that let you modify pages. I have never tried using this API to change page names - but something you can look into.

Translate