Skip to main content
GK-007
Level 9
April 11, 2017
Beantwortet

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

  • April 11, 2017
  • 2 Antworten
  • 1013 Ansichten

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

Dieses Thema wurde für Antworten geschlossen.
Beste Antwort von 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 Antworten

MC_Stuff
MC_StuffAntwort
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

Varun Rawat