Zum Inhalt springen

[GMENU] BOX + TEXT?

Erstellt am 6. September 2005 · 3 Antworten · letzte Antwort am 6. September 2005

Tags: Frage

Fabian-K ·

Hallo,

ich habe ein GMENU.

Dieses GMENU besteht aus 3 Ebenen:
1. Hintergrundgrafik
2. BOX (nur im CUR-Zustand!)
3. TEXT

Ich habe es jetzt halbwegs hinbekommen, dass die BOX im Hintergrund des Textes angezeigt wird:

temp.main_menu = HMENU
temp.main_menu {
  entryLevel = 0
  maxItems = 8
  1 = IMGMENU
  1 {
    main.10 = IMAGE
    main.10.file = fileadmin/template/images/header.jpg
    main.XY = [10.w], [10.h]
    dWorkArea = 366,130
    
    NO {
      distrib = textX+12, 0
      20 = TEXT
      20 {
        text.field = title
        fontFile = t3lib/fonts/FaNBdR__.ttf
        fontSize = 13
        fontColor = white
        niceText = 1
        offset = 15,8
        imgMap.explode = 2,2
      }
    }

    CUR = 1
    CUR {
      distrib = textX+12, 0
      10 = BOX
      10.dimensions = 1,-10,50,20
      10.color = white
      20 = TEXT
      20 {
        text.field = title
        fontFile = t3lib/fonts/FaNBdR__.ttf
        fontSize = 13
        fontColor = black
        niceText = 1
        offset = 15,8
        imgMap.explode = 2,2
      }
    }
  }
}

(bei CUR)

Aber wie mache ich es, dass die BOX (10) genauso breit ist, wie der Text (20)?

10.dimensions = 1,-10,50,20

funktioniert leider nicht, dann wird mir ueberhaupt keine weisse BOX angezeigt 🙁

Hilfe!
Danke.

fuss ·
10.XY = [20.w]+10, [20.h]+8

sollte reichen, um dich auf die richtige Fährte zu lenken 😉

gruss, fuss

Fabian-K ·

Wo genau soll ich das reinpacken?

    CUR = 1
    CUR {
      distrib = textX+12, 0
      10 = BOX
      10.dimensions = 1,-10,50,20
      10.color = white
      20 = TEXT
      20 {
        text.field = title
        fontFile = t3lib/fonts/FaNBdR__.ttf
        fontSize = 13
        fontColor = black
        niceText = 1
        offset = 15,8
        imgMap.explode = 2,2
      }
      10.XY = [20.w]+10, [20.h]+8
    }

Das funzt auch nicht. es wird GARNICHTS angezeigt, von der weissen BOX.. also kein Fortschritt 🙁
Auch wenn ich dimensions rausnehme funzt es net 🙁