adobe / aem-core-wcm-components

Standardized components to build websites with AEM.
https://docs.adobe.com/content/help/en/experience-manager-core-components/using/introduction.html
Apache License 2.0
723 stars 737 forks source link

Page List items show incorrect last modified date in data layer #2761

Open HitmanInWis opened 1 month ago

HitmanInWis commented 1 month ago

Bug present as of version: 2.24.7-SNAPSHOT

When rendering the data layer for page list items, the current repo:modifyDate represents the last modify date of the linked cq:Page node. This is incorrect in one of two possible ways.

1) We could argue that the list item should not have a repo:modifyDate at all, since the data layer item is giving the data of this "list item" (not the page), and the modifyDate of this list item is unknown b/c the link doesnt exist as a resource in the JCR in the case of a list pulled by Child, Search, or Tag options.

2) OR if we do want the repo:modifyDate to match the page last modified date, then it should be looking at the jcr:content resource underneath the cq:Page, to match with the last modified date that is displayed when the Show date option on the List component dialog is toggled on.