


Erstellen eines countdowns bis zu einem bestimmten Datums.
Dies ist ein Beispiel für die nicht grafische Variante, das typoscript Snippet gibt einfach
"Es sind noch XXX tage bis XXX" aus.
Folgendes in das Constants Feld:
# Das countdown Date (In UNIX time format) lib.countdown.date = 1142095231
Und folgendes ins SETUP Feld:
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 = Es sind noch | Tage bis 20 = TEXT 20.value = {$lib.countdown.date} 20.strftime = %d %B %y }
Dieses Snippet wurde von Peter Klein eingesendet


Kommentare (2)