[TYPO3] Down counter (solved)
Allan Jacobsen
allan.jacobsen at tips.dk
Fri Feb 10 09:20:32 CET 2006
Thank you Peter
It works perfectly.
Best regards/MVH
Allan Jacobsen
Infrastruktur, Dansk Tipstjeneste A/S
Korsdalsvej 135, 2605 Brøndby
-----Oprindelig meddelelse-----
Fra: typo3-english-bounces at lists.netfielders.de [mailto:typo3-english-bounces at lists.netfielders.de] På vegne af Peter Klein
Sendt: 9. februar 2006 18:30
Til: typo3-english at lists.netfielders.de
Emne: Re: [TYPO3] Down counter
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