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

Bartosz Aninowski bart at sonik.pl
Sun Nov 13 13:28:54 CET 2005


> 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?

for three line header
second line after |
third line after ||

HeaderFour = IMAGE
HeaderFour {
stdWrap.wrap = <div>|</div>
stdWrap.fieldRequired = header_link
stdWrap.typolink.parameter.data = field : header_link
file = GIFBUILDER
file {
XY = 225,[10.h]+[20.h]+[30.h]+3
transparentColor = #FFFFFF
backColor = #FFFFFF
10 = TEXT
10 {
text.field =
text.current = 1
fontSize = 14
offset = 0,16
fontFile =fileadmin/fonts/tahoma.ttf
fontColor = #390003
niceText = 0
text.listNum = 0
text.listNum.splitChar = |
}
20 = TEXT
20 {
text.field =
text.current = 1
fontSize = 14
offset = 0,[10.h]+[20.h]
fontFile =fileadmin/fonts/tahoma.ttf
fontColor = #390003
niceText =0
text.listNum = 1
text.listNum.splitChar = |
}
30 = TEXT
30 {
text.field =
text.current = 1
fontSize = 14
offset = 0,[10.h]+[20.h]+[30.h]
fontFile =fileadmin/fonts/tahoma.ttf
fontColor = #390003
niceText =0
text.listNum = 1
text.listNum.splitChar = ||
}
}
}


> 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...)

exacly!

> 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

thanks I will check it out 





More information about the TYPO3-english mailing list