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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

AEMnewbie
Level 4
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
Veena_Vikram
Correct answer by
Community Advisor
Community Advisor

@AEMnewbie I agree with @Arun_Patidar 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

1 Reply
Shashi_Mulugu
Community Advisor
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)

AEMnewbie
Level 4
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
Ankur_Khare
Community Advisor
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.

kunal23
Level 10
Level 10

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 

AEMnewbie
Level 4
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
Arun_Patidar
Community Advisor
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.

AEMnewbie
Level 4
Level 4
@Arun_Patidar 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
Veena_Vikram
Correct answer by
Community Advisor
Community Advisor

@AEMnewbie I agree with @Arun_Patidar 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