[Typo3] change the color of the first word of a header or a title

Mario marrio at email.si
Sun Nov 13 13:00:49 CET 2005


Bartosz Aninowski wrote:

> Hi
> this is very easy with GIFBUILDER and optionSplit
> 
> HeaderFive = IMAGE
> HeaderFive {
> wrap = |
> file = GIFBUILDER
> file {
> XY = [10.w]+[20.w],30
> transparentColor = #FFFFFF
> backColor = #FFFFFF
> 10 = TEXT
> 10 {
> text.field =
> text.current = 1
> fontSize = 12
> offset = 0,25
> fontFile =fileadmin/fonts/SWIZENPB.TTF
> fontColor = #1E3584
> niceText = 0
> text.listNum = 0
> text.listNum.splitChar = |
> }
> 20 = TEXT
> 20 {
> text.field =
> text.current = 1
> fontSize = 12
> offset = [10.w]-5,25
> fontFile =fileadmin/fonts/SWIZENPB.TTF
> fontColor = #C11414
> niceText = 0
> text.listNum = 1
> text.listNum.splitChar = |
> }
> }
> }
> 
> lib.stdheader.10.5 < HeaderFive
> 
> 
> | - is your separation sign
> so your header should look like this in BE
> My | header
> 
> 
> but your question is very similar to my post about "combinded graphical 
> header in TV"
> I use the same method desribed above but I want to fit height of image if 
> second line of header is empty
> 
> 

Thank you for you reply - I'll give it a try right away!

I am also looking for a possibility to render graphical header when 
spanning accross several lines, two or three lines... i think splitting 
the header into separate images (=each pic representing each word) by 
using the space character is the solution, but I don't know yet how to 
produce this... maybe that is what you're looking for, also?

Regarding your problem, I think I found something good, but still I 
don't understand quite well what is exactly you would like to do. Are 
you trying to automaticaly size (=adjust) the header (=header text) and 
make graphic one line wide if there is only one line of text? (It sounds 
to me like it has something to do with CASE in TS...)

Anyway, here's the link to the article that I found and think can be 
useful for solving your problem (those 3 lines are indeed only 1): 
http://typo3.org/documentation/mailing-lists/english-main-list-archive/
thread/59373/?tx_maillisttofaq_pi1%5Bsword%5D=standard%20headers&tx_
maillisttofaq_pi1%5Banswered_only%5D=1&tx_maillisttofaq_pi1%5Bmode%5D=1

Hope this helps!
Mario





More information about the TYPO3-english mailing list