[TYPO3-english] TS: Reading date of last changed content element

Dmitry Dulepov dmitry at typo3.org
Wed Mar 4 11:45:01 CET 2009


Hi!

Sebastian Gebhard wrote:
> i'm trying to print out the date of the last change of any content
> element on the website.
> 
> For this I use:
> 
> lib.lastchange = COA_INT
> lib.lastchange.5 = CONTENT
> lib.lastchange.5{
>   table = tt_content
>   stdWrap.override{
>     data = register:SYS_LASTCHANGED
>     strftime = %d.%m.%Y
>     wrap = aktualisiert am: |
>   }
> }

SYS_LASTCHANGED is different for each page. And sometimes it does not work reliably.

> It basically does what it should do, but it does not update everytime I
> update a content element.
> 
> I also tried this:

<skip>

> Which has exactly the same effect.

Because SYS_LASTCHANGED is a property of the page.

> When i look into the DB, there are CEs that have a higher timestamp
> field than the date that is put out by this snippet.
> 
> Do you have any suggestions?

What TYPO3 version do you use? I have no problem with SYS_LASTCHANGED in 4.2.

-- 
Dmitry Dulepov
TYPO3 core team
http://dmitry-dulepov.com/
"Computers are so unreliable... just like people" (Major Cain, "Resident Evil: Apocalypse")


More information about the TYPO3-english mailing list