[TYPO3] Show after date/time condition in TS

Dmitry Martynenko dima at realt.by
Wed Apr 2 11:01:52 CEST 2008


Hi JoH,

Ja> You are using a real date here, but it should be a timestamp instead, since
Ja> a date is a string and not a numeric value you could compare with another.
Ja> Additionally you are using isGreaterThan and isLessThan inverted.

Ja> So your code should be:

Ja> page.5 = HTML
Ja> page.5.value = <iframe >...</iframe>
Ja> page.5.if {
Ja>     # get current date
Ja>     value.data = date:U
Ja>     # start date
Ja>     isLessThan = ###timestamp start###
Ja>     # end date
Ja>     isGreaterThan = ###timestamp end###
Ja> }

Ja> Replace the ###timestamp xxx### markers with the appropriate timestamps.

Thanks for reply!
I think about to do this way. But for human it is too complicated
get timestamp instead readable date.
You need for example PHP to get it.

-- 
Dmitry Martynenko
Developer

Web: http://realt.by



More information about the TYPO3-english mailing list