[TYPO3-ttnews] Holiday dependend rendering of displaySingle

Andreas Flügge andreas at fluegge.org
Fri Dec 23 09:50:32 CET 2005


Hello!

I'm rendering the displaySingle graphically as follows. This works fine.
Further I would like to change the fontColor when the date is a sunday 
or another holiday (like eastern, christmas, ...).

Can I do it with TS? How it looks like?
Or have I to do it with PHP? And how would look this way?

Thanks for all answers.
I wish you all a merry christmas and a happy new year!

Andreas.

--------------------------
My code:

plugin.tt_news {
     displaySingle {
         date_stdWrap.strftime >
         date_stdWrap.cObject = IMAGE
         date_stdWrap.cObject.file = GIFBUILDER
         date_stdWrap.cObject.file {
             XY = 60, 100
             backColor = #CCCCCC
...
             20 = TEXT
             20.text.field = datetime
             20.text.date = j
             20.fontFile = fileadmin/fonts/kalenderziffern.ttf
             20.fontSize = 66
             20.fontColor = #000000
             20.offset = 60-[20.w]/2, 78
             20.antiAlias = 0
             20.niceText = 1
...
         }
     }
}



More information about the TYPO3-project-tt-news mailing list