[TYPO3] Down counter
Peter Klein
peter at umloud.dk
Thu Feb 9 18:29:59 CET 2006
Hi Allan. Try this:
Put this in CONSTANTS:
-- cut --
# The countdown date (In UNIX time format)
lib.countdown.date = 1142095231
-- cut --
And put this in SETUP:
-- cut --
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
}
-- cut --
---
Peter Klein / Umloud Untd
"Allan Jacobsen" <allan.jacobsen at tips.dk> wrote in message
news:mailman.14209.1139496541.6406.typo3-english at lists.netfielders.de...
Hi
I want to make a down counter until a certain date.
I don't want any graphics or anything like that, just a text like this:
"It is now xx days until xxx"
Can't whis be made in typoscript, I have googled and read tsref etc. but
can't seem to find any examples.
Best regards/MVH
Allan Jacobsen
Infrastruktur, Dansk Tipstjeneste A/S
Korsdalsvej 135, 2605 Brøndby
More information about the TYPO3-english
mailing list