Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

What would be a better way to copy multiple pages from one location to another in AEM 6.5

Avatar

Level 4

I have a requirement to copy multiple pages from one location to another

i.e Page 1-10 has multiple components - Out of which one 1 component need to be copied from one path to another(It should be able to override if existing)

Is there any OOO functionality where i could select multiple pages and then a source path and destination path - And then the copying takes place automatically without any performance issue ?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@AEMnewbie I agree with @arunpatidar and @Shashi_Mulugu , but then since you told you don't want to write one time script, as your authors might be the one who is going to do this , I would say create a custom tools page which will be like a utility page for the authors. In the way you think best suits for the authors give them the option to choose the components from the page which they want to copy or move. It will totally depend on your requirement, but that would be one way to do it I guess. 

 

Veena ✌

View solution in original post

8 Replies

Avatar

Community Advisor

@AEMnewbie As of I know no OOTB functionality for this.. except doing some custom coding.

 

Why can't you use MSM setup for such a requirement so that you can always override components from parent to child(ofcourse with relationship intact)

Avatar

Level 4
@Shashi_Mulugu @Ankur_Khare Here is a overview on my usecase Page 1 (Parent )— Has inheritance in place I.e content/X/page1 Then we have inheritance enabled for this page I.e content/X/Y/childPage1 content/X/Z/childPage2 So any changes in Page1 is carried over to childPage1 and childPage2 But the problem I am trying to address is there is a use case. Where we want to copy info from childPage1 to childPage2

Avatar

Community Advisor

You can use rollout feature in aem to rollout pages from one place to another but it would have inheritance from your source location.

Avatar

Employee Advisor

You can use Page Relocator utility of ACS commons for this bulk copy task. For more details please see - https://adobe-consulting-services.github.io/acs-aem-commons/features/mcp/subpages/tools.html 

Avatar

Level 4
I am thinking this wouldnt help in my case since i wanna perform copy and not move. I see a rename option too but i dont want to rename it either

Avatar

Community Advisor

So you want to update content but not want to move actual pages? Is this correct?

You can write a groovy script and update components on the page. it is easy and fast.



Arun Patidar

Avatar

Level 4
@arunpatidar Correct ! This isnt a one time process -- And most of the time content authors would be performing this operation - So wasnt too inclined towards a script , unless we have no other option

Avatar

Correct answer by
Community Advisor

@AEMnewbie I agree with @arunpatidar and @Shashi_Mulugu , but then since you told you don't want to write one time script, as your authors might be the one who is going to do this , I would say create a custom tools page which will be like a utility page for the authors. In the way you think best suits for the authors give them the option to choose the components from the page which they want to copy or move. It will totally depend on your requirement, but that would be one way to do it I guess. 

 

Veena ✌