Publish / unpublish History | Community
Skip to main content
Level 2
October 19, 2022
Solved

Publish / unpublish History

  • October 19, 2022
  • 2 replies
  • 929 views

Hi

 

Is there any way of checking if a page was unpublished before it was published?
Want to check when (Date) it got published and when (Date) it got unpublished and User who published & unpublished

Thanks in Advance !!!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Shiv_Prakash_Patel

Hi @sigarambotla_hemanthku ,

You can use ReplicationStatus to get the deactivated/unpublished status of the page:

 

ReplicationStatus status = page.adaptTo(ReplicationStatus.class);
boolean deactivatedStatus = status.isDeactivated();

 You can also check the activated/published status below:

boolean activatedStatus = status.isActivated();

Hope this could help you

Thanks

Shiv 

2 replies

Bhuwan_B
Community Advisor
Community Advisor
October 19, 2022
Level 2
October 19, 2022

Is there any other way as i am not finding that /etc/acs-commons/audit-log-search.html  path in that

 

 

Shiv_Prakash_Patel
Community Advisor
Shiv_Prakash_PatelCommunity AdvisorAccepted solution
Community Advisor
October 19, 2022

Hi @sigarambotla_hemanthku ,

You can use ReplicationStatus to get the deactivated/unpublished status of the page:

 

ReplicationStatus status = page.adaptTo(ReplicationStatus.class);
boolean deactivatedStatus = status.isDeactivated();

 You can also check the activated/published status below:

boolean activatedStatus = status.isActivated();

Hope this could help you

Thanks

Shiv 

Shiv Prakash