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

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
Level 10

@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
Level 10

@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