---
title: "[GMENU] BOX + TEXT?"
url: "https://www.typo3.net/d/29727-gmenu-box-text"
source: "typo3.net"
tags: ["TYPO3","Menüs","Frage"]
created: "2005-09-06"
last_reply: "2005-09-06"
replies: 3
solved: false
page: 1
pages: 1
lang: "de"
---

# [GMENU] BOX + TEXT?

TYPO3 › Menüs · 3 Antworten · gestartet 2005-09-06

## Eröffnungsbeitrag

**Fabian-K** · 2005-09-06 · [Beitrag #1](https://www.typo3.net/d/29727-gmenu-box-text/1)

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:

```typoscript
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)?

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

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

Hilfe!
Danke.

## Antworten

### [#2](https://www.typo3.net/d/29727-gmenu-box-text/2) · fuss · 2005-09-06

```typoscript
10.XY = [20.w]+10, [20.h]+8
```

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

gruss, fuss

### [#3](https://www.typo3.net/d/29727-gmenu-box-text/3) · Fabian-K · 2005-09-06

Hallo,

das bringt mich leider auch nicht weiter :(

### [#4](https://www.typo3.net/d/29727-gmenu-box-text/4) · Fabian-K · 2005-09-06

Wo genau soll ich das reinpacken?

```typoscript
    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 :(

---

Quelle: „[GMENU] BOX + TEXT?“, typo3.net, https://www.typo3.net/d/29727-gmenu-box-text
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
