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

To rollout and publish the rolledout pages

Avatar

Level 2

07-09-2021

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 Comments

Avatar

Level 4

07-09-2021

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.

Avatar

Employee Advisor

13-09-2021

Hello @abinayaSirius 

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


Thanks

Status changed to: Needs Info

Avatar

Administrator

18-10-2021

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

Status changed to: Declined

Avatar

Community Advisor

05-11-2021

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