Hi all,
We got a requirement to run workflow on parent page to cancel inheritance for child pages of a parent page the inheritance should cancel for child page properties and child page components what's the best way to do this,
do we need to iterate through all child pages and then iterate through components of page and do cancelinheritance
was there any other way to acheive this.
Thanks in advance
Solved! Go to Solution.
Views
Replies
Total Likes
Use liverelationshipmanager API - https://developer.adobe.com/experience-manager/reference-materials/6-5/javadoc/com/day/cq/wcm/msm/ap...
Get the live copies of the parent or blueprint page - https://developer.adobe.com/experience-manager/reference-materials/6-5/javadoc/com/day/cq/wcm/msm/ap...
and then use cancelRelationship for each live copy - https://developer.adobe.com/experience-manager/reference-materials/6-5/javadoc/com/day/cq/wcm/msm/ap...
Use liverelationshipmanager API - https://developer.adobe.com/experience-manager/reference-materials/6-5/javadoc/com/day/cq/wcm/msm/ap...
Get the live copies of the parent or blueprint page - https://developer.adobe.com/experience-manager/reference-materials/6-5/javadoc/com/day/cq/wcm/msm/ap...
and then use cancelRelationship for each live copy - https://developer.adobe.com/experience-manager/reference-materials/6-5/javadoc/com/day/cq/wcm/msm/ap...
Thank You.
Use the LiveRelationshipManager API in AEM to:
1. Retrieve live copies (child pages) of the parent or blueprint page.
2. Use the cancelRelationship() method to break inheritance for each child page.
This approach eliminates the need for manual iteration through child pages and components.
Thank you.
Hi Team,
This approach ensures granular control over the inheritance-breaking process for both page properties and components.
Example Workflow:
Views
Likes
Replies
Views
Likes
Replies