[TYPO3-ttnews] Not showing date/time if archive date is e.g. 1-1-2030

Jordan van Bergen jordanvanbergen at gmail.com
Tue Jul 15 13:59:48 CEST 2008


I found the solution to my question:

>>> a simple TS condition should do the trick:
>>> plugin.tt_news.displaySingle {
>>>  datetime_stdWrap.if.field = archivedate
>>>  datetime_stdWrap.if.negate = 1
>>> }

a. Individual newsitem: I added the following to the setup:

  displaySingle {
                  date_stdWrap{  
                               if {
                               value = 1893452400
                               equals.field = archivedate
                               negate = 1  
                               }
                }  
    date_stdWrap.strftime= %d %B %Y
   }

b. Listing newsitems: I added the following to the setup:

  displayList {
                  date_stdWrap{  
                               if {
                               value = 1893452400
                               equals.field = archivedate
                               negate = 1  
                               }
                }    
  date_stdWrap.strftime= %d %B %Y
  }
}

this does the trick ;-)

Regards
Jordan van Bergen



More information about the TYPO3-project-tt-news mailing list