[TYPO3-english]  TS: Reading date of last changed content element
    Sebastian Gebhard 
    s.gebhard at markenmotiv.de
       
    Wed Mar  4 10:30:10 CET 2009
    
    
  
Hi list,
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: |
   }
}
I wrapped it with COA_INT to prevent it from caching and CONTENT_INT 
does not exist.
It basically does what it should do, but it does not update everytime I 
update a content element.
I also tried this:
lib.lastchange = COA_INT
lib.lastchange.5 = CONTENT
lib.lastchange.5{
   table = tt_content
   select{
     orderBy = tstamp DESC
     max = 1
   }
   stdWrap.override{
     data = register:SYS_LASTCHANGED
     strftime = %d.%m.%Y
     wrap = aktualisiert am: |
   }
}
Which has exactly the same effect.
config.noCache = 1 has no effect on the behavior of the snippet. It 
always shows a date older than it should.
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?
Regards,
Sebastian
    
    
More information about the TYPO3-english
mailing list