Expand my Community achievements bar.

SOLVED

Change the Parent (blueprint) of a live Copy

Avatar

Level 2

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.

 

 

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

@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/LiveRelationshipManag... 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

View solution in original post

3 Replies

Avatar

Correct answer by
Employee Advisor

@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/LiveRelationshipManag... 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

Avatar

Community Advisor

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-l...



Arun Patidar