---
title: "Megamenü mit TYPO3"
url: "https://www.typo3.net/d/116357-megamenue-mit-typo3"
source: "typo3.net"
tags: ["TYPO3","Menüs","Frage","TYPO3 6.x"]
created: "2013-10-19"
last_reply: "2013-10-21"
replies: 3
solved: false
page: 1
pages: 1
lang: "de"
---

# Megamenü mit TYPO3

TYPO3 › Menüs · 3 Antworten · gestartet 2013-10-19

## Eröffnungsbeitrag

**leibnitz** · 2013-10-19 · [Beitrag #1](https://www.typo3.net/d/116357-megamenue-mit-typo3/1)

Hallo,

bin gerade dabei an einem Megamenü für TYPO3. HTML/CSS ist alles schon fertig, aktuell bin ich dabei das Menü in TypoScript zu erstellen. Hier stehe ich vor einem kleinen Problem.

Das Menü ist im HTML Code so aufgebaut:

```html
			<li class="has-submenu">
```

```html
				<a href="#">Menüpunkt</a>
```

```html
				<div class="subnav cf">
```

```html
					<ul>
```

```html
						<li><a href="#">Menüpunkt</a></li>
```

```html
						<li><a href="#">Menüpunkt</a></li>
```

```html
						<li><a href="#">Menüpunkt</a></li>
```

```html
						<li><a href="#">Menüpunkt</a></li>
```

```html
						<li><a href="#">Menüpunkt</a></li>
```

```html
						<li><a href="#">Menüpunkt</a></li>
```

```html
						<li><a href="#">Menüpunkt</a></li>
```

```html
						<li><a href="#">Menüpunkt</a></li>
```

```html
					</ul>
```

```html
					<ul>
```

```html
						<li><a href="#">Menüpunkt</a></li>
```

```html
						<li><a href="#">Menüpunkt</a></li>
```

```html
						<li><a href="#">Menüpunkt</a></li>
```

```html
						<li><a href="#">Menüpunkt</a></li>
```

```html
						<li><a href="#">Menüpunkt</a></li>
```

```html
						<li><a href="#">Menüpunkt</a></li>
```

```html
						<li><a href="#">Menüpunkt</a></li>
```

```html
						<li><a href="#">Menüpunkt</a></li>
```

```html
					</ul>
```

```html
				</div>
```

```html
			</li>
```

Beim Megamenü ist sozusagen das erste <ul> die linke Spalte und das zweite <ul> die Rechte.

Wie kann ich in TYPO3 sagen, dass er nach genau 8 Punkten ein neues <ul>|</ul> erstellen soll? evtl. mit Trennzeichen?

Mein aktuelles TypoScript sieht so aus:

```typoscript
  marks.MAINMENU = HMENU
```

```typoscript
  marks.MAINMENU {
```

```typoscript
    entryLevel = 0
```

```typoscript
    1 = TMENU
```

```typoscript
    1 {
```

```typoscript
      noBlur = 1
```

```typoscript
      expAll = 1
```

```typoscript
      wrap = <ul>|</ul>
```

```typoscript
      NO = 1
```

```typoscript
      NO {
```

```typoscript
        wrapItemAndSub = <li> | </li>
```

```typoscript
      }
```

```typoscript
      IFSUB = 1
```

```typoscript
      IFSUB {
```

```typoscript
        wrapItemAndSub = <li class="has-submenu"> |</li>
```

```typoscript
      }
```

```typoscript
    }
```

```typoscript
    2 = TMENU
```

```typoscript
    2 {
```

```typoscript
      noBlur = 1
```

```typoscript
      expAll = 1
```

```typoscript
      wrap = <div class="subnav cf"><ul>|</ul></div>
```

```typoscript
      NO = 1
```

```typoscript
      NO {
```

```typoscript
        wrapItemAndSub = <li>|</li>
```

```typoscript
      }
```

```typoscript
    }
```

```typoscript
  }
```

Grüße Leibnitz

## Antworten

### [#2](https://www.typo3.net/d/116357-megamenue-mit-typo3/2) · sensus-media · 2013-10-19

Hi Leibnitz,

mit einem Trennzeichen bist du schon mal auf dem richtigen Weg.
Trennzeichen dort setzen wo das <ul> beendet werden soll.

Im TypoScript fügst du folgendes hinzu:

```typoscript
      SPC = 1
      SPC.before.dataWrap = </ul>|<ul>
      SPC.doNotShowLink = 1
```

Dann sollte dein HTML stimmen.

### [#3](https://www.typo3.net/d/116357-megamenue-mit-typo3/3) · etux · 2013-10-20

Ähnliches Menü hatten wir mal im TYPO3Forum.net:
<http://www.typo3forum.net/forum/gmenu-hmenu-tmenu-co/59061-typoscript-nachhilfe-mehrspalten-menue-3.html#post190560>

### [#4](https://www.typo3.net/d/116357-megamenue-mit-typo3/4) · jenses · 2013-10-21

marks.MAINMENU.maxItems
und
marks.MAINMENU.begin
sind dein Freund.
Brauchst du 3 Spalten, musst du 3 HMENU-Objekte mit den entsprechenden Werten für maxItems und begin erzeugen, sinnvollerweise innerhalb eines COA's.

```typoscript
marks.MAINMENU = COA
marks.MAINMENU {
  10 = HMENU
  10 {
    begin = 1
    maxitems = 8
    ...
  }
  20 < .10
  20 {
    begin = 9
  }
  30 < .10
  30 {
    begin = 17
  }
}
```

---

Quelle: „Megamenü mit TYPO3“, typo3.net, https://www.typo3.net/d/116357-megamenue-mit-typo3
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
