[TYPO3] Last updated on a page

Dmitry Dulepov [typo3] dmitry at typo3.org
Sat Jan 26 18:17:31 CET 2008


Hi!

Nino Katic wrote:
> Yes, i saw that field in table pages but i guess it gets updated only when 
> you do some changes on a page.. ie. you add/delete some content on a page or 
> edit page preferences. This is not very usefull because content is usually 
> updated not the page itself. Further, i have tt_news plugin on a page that 
> displays news records from sys folder. When someome adds/deletes/updates 
> news record in sysfolder last update should also change. I'm not sure if 
> this can be done? Thx.

Yes, it can. You need CONTENT TS object. Select tstamp field for tt_news record from that sysfolder, order by tstamp (descending), limit to 1. Output this field formatting it as datetime (see stdWrap for details). This will be your 'last updated' value.

-- 
Dmitry Dulepov
TYPO3 core team
Web: http://typo3bloke.net/
Skype: callto:liels_bugs
"Nothing is impossible. There are only limits to our knowledge"


More information about the TYPO3-english mailing list