[TYPO3] GIFBuilder auto width and splitchar
JoH asenau
info at cybercraft.de
Wed Feb 28 14:50:52 CET 2007
> lib.main_menu.2 = GMENU
> lib.main_menu.2.wrap = <ul>|</ul></li>
> lib.main_menu.2 {
> expAll = 1
> noBlur = 1
> NO {
> transparentBackground = 1
> noLink=1
> XY = [10.w],23+[30.h]*105/100
> allStdWrap.typolink.parameter.field= uid
> allStdWrap.wrap = <li>|</li>
> 10 = TEXT
> 10.text.field = title
> 10.fontFile = fileadmin/templates/fonts/EXPERTSR.TTF
> 10.fontSize = 12
> 10.offset = 0,14
> 10.transparentBackground = 1
> 10.fontColor = #555555
> 10.align = left
> 10.if.isFalse.field = subtitle
>
> 20 = TEXT
> 20.text.field = title
> 20.fontFile = fileadmin/templates/fonts/EXPERTSR.TTF
> 20.fontSize = 12
> 20.offset = 0,14
> 20.transparentBackground = 1
> 20.fontColor = #555555
> 20.align = left
> 20.text.field = subtitle
> 20.text.listNum = 0
> 20.text.listNum.splitChar = |
> 20.text.if.isTrue
>
> 30 < .20
> 30.offset=0,27
> 30.text.listNum = 1
> }
> -------
> I works as follows:
> If a subtitle is specified it is used to create the menueitem and line
> wrap is applied vie the | character.
> It works quite well except that i am not able to determine whether 10
> or 20 is rendered.
> I wonder why [10.w] is evaluted even if a subtitle is set imho it
> should be 0 in this case (if.isFalse.field = subtitle).
> I would like to use [20.w] if a subtitle is specified and [10.w] if
> not. Any hints?
You should always use 10.w and therefor try using override.
10 = TEXT
10 {
text.field = title
text.override.field = subtitle
text.listNum = 0
text.listNum.splitChar = |
fontFile = fileadmin/templates/fonts/EXPERTSR.TTF
fontSize = 12
offset = 0,14
fontColor = #555555
align = left
}
20 < .10
20 {
text.listNum = 1
text.if.isTrue.field = subtitle
text.if.isTrue.listNum = 1
text.if.isTrue.splitChar = |
offset=0,27
}
HTH
Joey
--
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
openBC/Xing: http://www.cybercraft.de
T3 cookbook: http://www.typo3experts.com
More information about the TYPO3-english
mailing list