Zum Inhalt springen

GMenu: Problem mit 2- & 3-zeiliger Darstellung

Erstellt am 2. September 2005 · Noch keine Antworten

Tags: Frage

JHornyk2 ·

Hallo!

Ich habe ein GMenu erstellt, das mittels splitChar auch 2 & 3-zeilige Menü-Einträge anzeigen kann. Problem:
die Höhe des Hintergrunds eines einzeiligen Eintrags wird - so wie es sein soll - einzeilig dargestellt.
die Höhe des Hintergrunds eines dreizeiligen Eintrags wird - so wie es sein soll - dreizeilig dargestellt.
Nur: die Höhe eines zweizeiligen Eintrags wird ebenfalls dreizeilig dargestellt.

Bild: cms.hornykewycz.com/gmenu.gif

Wie bringe ich bei zweizeiligen Einträgen den Hintergrund dazu, die richtige Größe anzuzeigen?
Leider gibt es keine if-Anweisungen in Typoscript, sonst wüsste ich ungefähr, wie ich das Problem lösen könnte.

Hier der Code meines Menüs:

Seite.10.subparts.NAVI = HMENU
Seite.10.subparts.NAVI {


   1 = GMENU
   1{
       NO {
              XY = 140 , 18
              backColor = #336699
              entrylevel = 2
              10 = TEXT
              10.text.field = title
              10.offset = 6, 14
              10.fontColor = #FFFFFF
              10.fontFile = fileadmin/_temp_/fonts/arialbd.ttf
              10.fontSize = 9

              20 = IMAGE
              20.file = GIFBUILDER
              20.file {
                         XY = 200,2
                          backColor = #FFFFFF
                         }
             }

       RO < .NO
       RO = 1
       RO.10.fontColor = #66CC00
       RO.10.fontFile = fileadmin/_temp_/fonts/arialbd.ttf

       CUR < .NO
       CUR = 2
       CUR.10.fontColor = #FFFFFF
       CUR.10.fontFile = fileadmin/_temp_/fonts/arialbd.ttf
      }


2 < .1

   2 {
       NO {
              XY = 140 , 18+[16.h]
              backColor = #CCCCFF
              10 = TEXT
              10.text.field = title
              10.text.listNum = 0
              10.text.listNum.splitChar = |
              10.offset = 10, 14
              10.fontColor = #000000
              10.fontFile = fileadmin/_temp_/fonts/arial.ttf
              10.fontSize = 8
              10.niceText = 1
              10.offset = 4, 12

              14 < .10
              14.text.listNum = 1
              14.offset = 4, 24

              15 < .14
              15.text.listNum = 2
              15.offset = 4, 36

              16 < .10
              16.text.case = upper
              16.text.listNum = 1
              16.fontSize = 24
              16.offset = 1000, 1000

              20 = IMAGE
              20.file = GIFBUILDER
              20.file {
                         XY = 140, 1
                          backColor = #FFFFFF
                         }
             20.offset = 0, 17+[16.h]
             }

       RO < .NO
       RO = 2
       RO.backColor = #66CC00
       RO.10.fontFile = fileadmin/_temp_/fonts/arial.ttf

       CUR < .NO
       CUR = 2
       CUR.backColor = #9999CC
       CUR.10.fontColor = #000000
       CUR.10.fontFile = fileadmin/_temp_/fonts/arial.ttf

      }

3 < .1

   3 {
       NO {
              XY = 140 , 18+[16.h]
              backColor = #FFFFCC
              10 = TEXT
              10.text.field = title
              10.text.listNum = 0
              10.text.listNum.splitChar = |
              10.offset = 10, 14
              10.fontColor = #000000
              10.fontFile = fileadmin/_temp_/fonts/arial.ttf
              10.fontSize = 8
              10.niceText = 1
              10.offset = 10, 12

              14 < .10
              14.text.listNum = 1
              14.offset = 10, 24

              15 < .14
              15.text.listNum = 2
              15.offset = 10, 36

              16 < .10
              16.text.case = upper
              16.text.listNum = 1
              16.fontSize = 24
              16.offset = 1000, 1000

              20 = IMAGE
              20.file = GIFBUILDER
              20.file {
                         XY = 140, 1
                          backColor = #FFFFFF
                         }
             20.offset = 0, 17+[16.h]
             }

       RO < .NO
       RO = 3
       RO.backColor = #66CC00
       RO.10.fontFile = fileadmin/_temp_/fonts/arial.ttf

       CUR < .NO
       CUR = 3
       CUR.backColor = #FFFFCC
       CUR.10.fontColor = #000000
       CUR.10.fontFile = fileadmin/_temp_/fonts/arial.ttf

      }
 }

Danke für jede Hilfe!

Joe