To rollout and publish the rolledout pages | Community
Skip to main content
abinayaSirius
Level 2
Sep 7, 2021 10:24 AM UTC
Declined

To rollout and publish the rolledout pages

Request for Feature Enhancement (RFE) Summary: Rollout and publish the rolledout pages.
Use-case: A feature in the OOB toolbox that will enable the authors to rollout a page. As a summary of the rollout we need to display which are all the pages that are affected along with a publish button by the side of the list. Rightnow, the author is unaware of what are the pages that affected by the rollout. Publishing each page after the rollout is very difficult.
Current/Experienced Behavior: we dont have an option in the sites.html to rollout a page. 
Improved/Expected Behavior: We need to check if the page is a blueprint or not and conditionally display a button that says "rollout and publish". Once rollout operation is completed the author should be able o see a list of pages affected by the rollout and need a publish button so that the rolledout pages can be published without hastle.
Environment Details (AEM version/service pack, any other specifics if applicable):  
Customer-name/Organization name: Abinaya/Perficient
Screenshot (if applicable):  
Code package (if applicable):  

4 replies

arunpatidar
New Participant
Nov 5, 2021 11:27 AM UTC

The rollout configs
Activate on Blueprint and decativate on Blueprint also allowed you to publish/unpublish live copy as soon as blueprint is published.

Translate
Arun Patidar
kautuk_sahni
Employee
Oct 19, 2021 6:45 AM UTC

@abinayasirius , We are closing this ticket as we do not hear a response from you. Please reply with information asked on this thread to reopen it again. 

Translate
Kautuk Sahni
Employee
Sep 13, 2021 11:15 AM UTC

Hello @abinayasirius 

Could you please let us if the proposal from @rohit-negi works for your use case and if you managed to get the information as needed?


Thanks

Translate
Rohit-Negi
Level 3
Sep 7, 2021 12:30 PM UTC

Hi @abinayasirius 

One way to know whether a page is a blueprint or not can be by knowing whether it have  livecopy or not.

You can use below code to know whether it has a livecopy or not:

Resource resource = req.getResourceResolver().getResource("<path of the page you wanted to check for blueprint>");

LiveRelationshipManager liveRelationshipManager = req.getResourceResolver().adaptTo(LiveRelationshipManager.class);
RangeIterator rangeIterator = liveRelationshipManager.getLiveRelationships(resource,"",null);

 

if rangeIterator is null that means it doesn't have any live copy hence is not a blueprint.

You can use the same code to get all the live copies if the path provided is a blueprint.

Translate