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.
Solved! Go to Solution.
Views
Replies
Total Likes
@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
@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
Views
Replies
Total Likes
Hi,
if you are using page move rollout config then moving blueprint will adjust the live copy as well
Views
Likes
Replies