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

Bartosz Aninowski bart at sonik.pl
Sun Nov 13 11:00:31 CET 2005


> This was originally posted in design newsgroup, but I decided to place
> it here since the problem is more related to TS and coding than to design.
>
> What I am trying to do is to make a graphical headers using TS, so the 
> first word in each header is in different color than the rest of the title 
> or header.

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






More information about the TYPO3-english mailing list