its fairly simple to get the pages under a particular location but i want to get those pages last modified date as well via AEM query.Any idea for the same ??
Solved! Go to Solution.
Views
Replies
Total Likes
Yes, you can do that.
You can make changes to the following query, as per your use case:
/jcr:root/content//element(*,cq:Page)[(@cq:lastModified >= xs:dateTime('2015-11-03T04:00:00.000-05:00') and @cQ:lastModified <= xs:dateTime('2015-11-03T20:00:00.000-05:00')) or (@jcr:created >= xs:dateTime('2019-01-01T04:00:00.000-05:00')
and @jcr:created <= xs:dateTime('2020-11-03T20:00:00.000-05:00'))]
Views
Replies
Total Likes
You can Iterate over search results and then adapt the hits to a page and from there get the last modified date of pages. This you can do in Java as well as using groovy script.
Views
Replies
Total Likes
Yes, you can do that.
You can make changes to the following query, as per your use case:
/jcr:root/content//element(*,cq:Page)[(@cq:lastModified >= xs:dateTime('2015-11-03T04:00:00.000-05:00') and @cQ:lastModified <= xs:dateTime('2015-11-03T20:00:00.000-05:00')) or (@jcr:created >= xs:dateTime('2019-01-01T04:00:00.000-05:00')
and @jcr:created <= xs:dateTime('2020-11-03T20:00:00.000-05:00'))]
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Likes
Replies