Change the Parent (blueprint) of a live Copy | Community
Skip to main content
Vinodthakur
Level 2
Jul 13, 2021 9:06 AM UTC
Solved

Change the Parent (blueprint) of a live Copy

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.
shelly-goel
shelly-goelAccepted solution
Employee
Jul 13, 2021 2:32 PM UTC

@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

3 replies

arunpatidar
New Participant
Jul 13, 2021 3:59 PM UTC

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

Translate
Arun Patidar
shelly-goel
shelly-goelAccepted solution
Employee
Jul 13, 2021 2:32 PM UTC

@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

Translate
Vinodthakur
Level 2
Jul 13, 2021 3:31 PM UTC
Thanks Shelly It works
Translate