


Creating a countdown that displays the days till a specified date.
This is a sample for a non grafical varian, the typoscript snippet simply outputs
"It is now xx days until xxx"
Put following in the constants field:
# The countdown date (In UNIX time format) lib.countdown.date = 1142095231
And following into the SETUP field:
lib.countdown = COA_INT lib.countdown { 10 = TEXT 10.cObject = TEXT 10.cObject.data = date:U 10.cObject.wrap = ({$lib.countdown.date} -|)/86400 10.prioriCalc = intval 10.wrap = It is now | days until 20 = TEXT 20.value = {$lib.countdown.date} 20.strftime = %d %B %y }
This snippet was submitted by Peter Klein


Comments (0)