Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

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

Avatar

Level 9

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

1 Accepted Solution

Avatar

Correct answer by
Level 9

Hi Kishore,

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

Thanks,

View solution in original post

2 Replies

Avatar

Correct answer by
Level 9

Hi Kishore,

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

Thanks,

Avatar

Community Advisor

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