[TYPO3-dev] Last updated: Page and Content
Jigal van Hemert
jigal.van.hemert at typo3.org
Tue Mar 8 08:07:15 CET 2016
Hi,
On 25/02/2016 11:26, Gion Koch wrote:
> @Bernd
> Your are right. For now, only the change of default content elements
> like a textblock or something similar should be considered.
>
> @Jigal
> I am using Typo3 6.2.13, still need to update to the latest, and the
> following TS Snippet is used for preparing the SYS_LASTCHANGED for
> displaying in the frontend:
>
> lastUpdate = TEXT
> lastUpdate {
> data = page:SYS_LASTCHANGED
Shouldn't this be register:SYS_LASTCHANGED ? The field in the page
record is only updated after the page is rendered. It then turns into a
chicken-egg story (the page record contains the information of the
previous change, during rendering the new date/time is calculated and
stored in the page record, you display the previous value).
> It is always the same result. I am editing a normal text element, but
> the SYS_LASTCHANGED field doesn't update. I've checked the result on the
> page and to be sure directly in the database. Probably I will test this
> in an empty environment with 6.2.13 and the latest version.
I've tested with
page.999 = TEXT
page.999 {
data = register : SYS_LASTCHANGED
strftime = %c
wrap = Last modified:|
}
Changing the text of a text content element also changed the timestamp.
--
Jigal van Hemert
TYPO3 CMS Active Contributor
TYPO3 .... inspiring people to share!
Get involved: typo3.org
More information about the TYPO3-dev
mailing list