[TYPO3] GMENU and wrapping text

Peter Klein peter at umloud.dk
Mon Feb 13 21:24:57 CET 2006


Hi Matthew. Try searching for "gmenu splitchar" on Google (Searching the 
mailarchive directly, usually doesn't give as good results as Google)
That should give you some clues, or look at this example..

http://www.typo3wizard.com/en/snippets/gifbuilder/mehrzeiliger-text-im-gifbuilder.html

---
Peter Klein / Umloud Untd

"LaPointe, Matthew" <MLaPointe at venterinstitute.org> wrote in message 
news:mailman.15311.1139803769.6406.typo3-english at lists.netfielders.de...
Hello,

I have created a vertical GMENU. It works as expected, though I can't
figure out how to add a condition where if the text is longer than the
fixed width image, it wraps to the next line and grows the vertical
height of the image to allow for the wrapping.

Here's a visual of the graphical menu buttons:

This is fine:
------------------
| Menu Text      |
------------------

Here's where I am having a problem:
------------------
| Some Menu Text Goes Here |
------------------

This is what I would like to be able to do:
------------------
| Some Menu Text |
| Goes Here      |
------------------

Here's the typoscript I am working with:

lib.menu_left = HMENU
lib.menu_left.entryLevel = 1
lib.menu_left.1 = GMENU
lib.menu_left.1 {
  special = list
  special.value.field = uid
  NO {
    wrap = <div>|</div>
    backColor =  {$sectioncolors.color3}
    XY = 163, 34
    10 = TEXT
    10.niceText=1
    10.text.field = title
    10.fontFile = fileadmin/fonts/MAIAN.TTF
    10.fontSize=14
    10.fontColor=  {$sectioncolors.color5}
    10.align = right
    10.offset=-10,24
  }
  RO < .NO
  RO=1
  RO.10.fontColor =  {$sectioncolors.color5}
  ACT < .RO
  ACT=1
}


Thank you for any help.

Matt 





More information about the TYPO3-english mailing list