[TYPO3] GMenu dynamic height for menu item

Brian Bendtsen nightowl at galnet.dk
Mon Sep 3 14:28:14 CEST 2007


HI

Im building my first Graphics menu and have a couple of questions

So far it looks like this:

lib.menu = HMENU
lib.menu.1 = GMENU
lib.menu.1.NO {
backColor = #b4b4b4
XY = 130, 35
10 = TEXT
10.text.field = title
10.text.listNum = 0
10.text.listNum.splitChar = |
10.fontColor = #000
10.offset = 15,10
10.fontFile = fileadmin/fonts/times.ttf
10.fontSize = 14
10.niceText = 1
5 = IMAGE
5.file = fileadmin/templates/images/bullit_NO.gif

20 = TEXT
20.text.field = title
20.text.listNum = 1
20.text.listNum.splitChar = |
20.fontColor = #000
20.offset = 15,27
20.fontFile = fileadmin/fonts/times.ttf
20.fontSize = 14
20.niceText = 1
}

I split the text if its longer than I allow, but it is possible to ajust 
the height of a menu item dynamically depending on
whether the menu text is split or not? The height has to be twice the 
height if its split on 2 lines.

/Brian


More information about the TYPO3-english mailing list