Change the Parent (blueprint) of a live Copy | Community
Skip to main content
Vinodthakur
New Participant
July 13, 2021
Solved

Change the Parent (blueprint) of a live Copy

  • July 13, 2021
  • 2 replies
  • 1902 views

Hi All,

I have requirement where in client want to change the site structure to achieve smooth content authoring experience. 

This would need re-pointing some of the live copies to other blueprints means we would need to change parent of a live copy.

I was checking on AEM forums but did not find anything OOTB. It would be helpful if some can advice on custom steps around changing parent of a live copy.

 

 

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 shelly-goel

@vinodthakurThere are two options:

1. The node /jcr:content/cq:LiveSyncConfig under each of the live copy root has the property 'cq:master' which stores the blueprint page path. Update this property with the new blueprint path. Go to Sites console, fetch the references (Live Copies) for new blueprint, select specific live copy and synchronize (with subpages). This would update all the live copy pages to new blueprint.

2. To achieve this programmatically, write a servlet and use https://javadoc.io/doc/com.adobe.aem/aem-sdk-api/latest/com/day/cq/wcm/msm/api/LiveRelationshipManager.html api

First cancel the relationship and then reestablish using cancelRelationship() and establishRelationship() methods. The use https://javadoc.io/doc/com.adobe.aem/aem-sdk-api/latest/com/day/cq/wcm/msm/api/RolloutManager.html api to rollout the changes from new blueprint using rollout() method

2 replies

arunpatidar
New Participant
July 13, 2021

Hi, 

if you are using page move rollout config then moving blueprint will adjust the live copy as well

 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/move-page-behaviour-with-livecopies-in-aem-6-1-and-aem-6-3/qaq-p/265501

Arun Patidar
shelly-goel
shelly-goelAccepted solution
Employee
July 13, 2021

@vinodthakurThere are two options:

1. The node /jcr:content/cq:LiveSyncConfig under each of the live copy root has the property 'cq:master' which stores the blueprint page path. Update this property with the new blueprint path. Go to Sites console, fetch the references (Live Copies) for new blueprint, select specific live copy and synchronize (with subpages). This would update all the live copy pages to new blueprint.

2. To achieve this programmatically, write a servlet and use https://javadoc.io/doc/com.adobe.aem/aem-sdk-api/latest/com/day/cq/wcm/msm/api/LiveRelationshipManager.html api

First cancel the relationship and then reestablish using cancelRelationship() and establishRelationship() methods. The use https://javadoc.io/doc/com.adobe.aem/aem-sdk-api/latest/com/day/cq/wcm/msm/api/RolloutManager.html api to rollout the changes from new blueprint using rollout() method

Vinodthakur
New Participant
July 13, 2021
Thanks Shelly It works