[TYPO3-english] Special requitements for graphical headline

Gideon So gideonso at livingwater.org.hk
Tue Feb 3 06:07:37 CET 2009


Hi Thomas,

	What is the usage of substring in TEXT. I can't find any document 
mention about it. Would anyone please explain this to me??

	Thanks.

Gideon

Tomas Mrozek ??:
> Try splitting the text this way:
> 
> lib.headline = COA
> lib.headline {
>   10 = TEXT
>   10{
>     data = page:title
>     wrap = <h1>|</h1>
>   }
>   20 = IMAGE
>   20{
>     file = GIFBUILDER
>     file{
>       backColor = #FFFFFF
>       XY = [10.w]+[20.w],60
> 
>       10 = TEXT
>       10 {
>         offset = 0,30
>         fontSize = 30
>         fontFile = fileadmin/fonts/fscript.ttf
>         fontColor = #cccc33
>         text.data = page:title
>         text.case = upper
>         text.substring = 0,1
>       }
> 
>       20 = TEXT
>       20 {
>         offset = [10.w],30
>         fontSize = 18
>         fontFile = fileadmin/fonts/georgia.ttf
>         fontColor = #cccc33
>         text.data = page:title
>         text.case = upper
>         text.substring = 1,
>       }
>     }
>   }
> }
> 
> Tomas Mrozek


More information about the TYPO3-english mailing list