[TYPO3] GIFBuilder auto width and splitchar

Nikolas Hagelstein hagelstein at shr.cc
Wed Feb 28 13:15:45 CET 2007


Hi,

I got the following :
------
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?
Bye,
NIkolas


More information about the TYPO3-english mailing list