Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

how to keep old pages on publisher when move/rename

millionmeme
Level 1
Level 1

Currently if I move or rename a published page, the old page will be deleted on the publisher side automatically. I even try uncheck the republish option and the old ones still go disappear! This seems to be a default behaviour, is there any way I can keep the old pages on publisher side? Much appreciated!

move ootb rename
1 Accepted Solution
asutosh_jena
Correct answer by
Community Advisor
Community Advisor

Hi @millionmeme 

As per Adobe, If the page was already activated, moving the page will automatically deactivate it. By default, it will be reactivated when the move is complete, but this can changed by unchecking the Republish field for the page in the Move window.

1. If a page is already activated, moving or renaming it will deactivate it anyhow which will remove the page reference from publish instance.

2. Now if the Republish checkbox is checked, then the updated (moved or renamed) page will be moved to publish.

3. If it's not checked, the new page will not be moved to publish but at this point #1 is already completed. So we will not be getting the previous page back here.

 

Please refer:

https://experienceleague.adobe.com/docs/experience-manager-64/classic-ui/authoring/classic-page-auth...

 

It is not recommended to modify this feature as it's the OOTB functionality. But if still you want to try out something you can check for Pre-Processor. Pre-processors are invoked just before the activation/deactivation.
This will run for all type of activation and deactivation and is not limited to page move action.

 

Reference:

https://helpx.adobe.com/experience-manager/6-5/sites/developing/using/reference-materials/javadoc/co...

http://wemcode.wemblog.com/replication-preprocessor

https://labs.tadigital.com/index.php/2019/06/25/aem-preprocessor/

 

Thanks!

Thanks!

View solution in original post

6 Replies
asutosh_jena
Correct answer by
Community Advisor
Community Advisor

Hi @millionmeme 

As per Adobe, If the page was already activated, moving the page will automatically deactivate it. By default, it will be reactivated when the move is complete, but this can changed by unchecking the Republish field for the page in the Move window.

1. If a page is already activated, moving or renaming it will deactivate it anyhow which will remove the page reference from publish instance.

2. Now if the Republish checkbox is checked, then the updated (moved or renamed) page will be moved to publish.

3. If it's not checked, the new page will not be moved to publish but at this point #1 is already completed. So we will not be getting the previous page back here.

 

Please refer:

https://experienceleague.adobe.com/docs/experience-manager-64/classic-ui/authoring/classic-page-auth...

 

It is not recommended to modify this feature as it's the OOTB functionality. But if still you want to try out something you can check for Pre-Processor. Pre-processors are invoked just before the activation/deactivation.
This will run for all type of activation and deactivation and is not limited to page move action.

 

Reference:

https://helpx.adobe.com/experience-manager/6-5/sites/developing/using/reference-materials/javadoc/co...

http://wemcode.wemblog.com/replication-preprocessor

https://labs.tadigital.com/index.php/2019/06/25/aem-preprocessor/

 

Thanks!

Thanks!

View solution in original post

millionmeme
Level 1
Level 1

Thank you @asutosh_jena, it makes sense, but I'm looking for a hack to stop the deactivation in #1 programmatically, is it possible?

asutosh_jena
Community Advisor
Community Advisor

@millionmeme 
It is not recommended to modify this feature as it's the OOTB functionality. But if still you want to try out something you can check for Pre-Processor. Pre-processors are invoked just before the activation/deactivation.
This will run for all type of activation and deactivation and is not limited to page move action.

 

Reference:

https://helpx.adobe.com/experience-manager/6-5/sites/developing/using/reference-materials/javadoc/co...

http://wemcode.wemblog.com/replication-preprocessor

https://labs.tadigital.com/index.php/2019/06/25/aem-preprocessor/

 

Thanks!

 

BrianKasingli
Community Advisor
Community Advisor

@millionmeme,

Making things simple and not changing the out-of-the-box AEM behavior, for your requirement, I would manually copy the page (CTRL+C), and then paste (CTRL+V) and rename the page (using the move tool, using the keyboard button "M"). 

Also, check with your SEO team member if having duplicated web pages on your AEM website is good practice or not.

Jörg_Hoh
Employee
Employee

How do you want to make changes to the old page residing on publish, if you don't have it on author anymore? How do you want to delete it? Are you authors even aware that there is an orphan page on publish which they don't see on author?