How do we know pro-grammatically when the particular version of a page is activated? | Community
Skip to main content
GK-007
Level 9
April 11, 2017
Solved

How do we know pro-grammatically when the particular version of a page is activated?

  • April 11, 2017
  • 2 replies
  • 988 views

Hi All,

If a page is more than versions and is there a way to know when that specific version of that page replicated pro-grammatically?

I have checked in the backed and not able to see replication date of that particular version.

If anyone has any idea please help me in this regard.

Thanks,

Kishore

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 MC_Stuff

Hi Kishore,

   When programmatically replicating you need to add some property or log to distinguish otherwise no option to find between regular/programatic.

Thanks,

2 replies

MC_Stuff
MC_StuffAccepted solution
Level 10
April 12, 2017

Hi Kishore,

   When programmatically replicating you need to add some property or log to distinguish otherwise no option to find between regular/programatic.

Thanks,

rawvarun
Community Advisor
Community Advisor
April 12, 2017

Hi Kishore@CQ,

Only, thing you can identify is the version which is last replicated.

By the below query in  Query builder will tell the location of last replication of the page:

type=cq:AuditEvent

path=/var/audit/com.day.cq.replication/<page path>

property=cq:type
property.1_value=Activate
orderby=@cq:time
orderby.sort=desc
p.limit=-1

 

Regards,

Varun Rawat