[TYPO3-ttnews] today's date

Aleksandar Dulovic adulovic at gmail.com
Tue Sep 9 21:00:45 CEST 2008


Hello everyone,

I'd like to use an IF clause in my TS to substitute today's date in my
tt_news with the word "today"
This is as far as I get:

plugin.tt_news {
  displayLatest{
    # Formatting the time
    time_stdWrap.strftime = %I:%M %p
    # Formatting the date
    date_stdWrap {
      # The formatted value from the database, so far so good
      strftime = %a, %e-%b
      # Start IF comparison
      if {
        # today
        value.data = date:U
        # compare value to dbase field (probably wrong)
        equals.field = datetime
        # never works... try something else...
      }
    }
  }
}


Cheers


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