---
title: "sectionindex links mixed menu"
url: "https://www.typo3.net/d/99741-sectionindex-links-mixed-menu"
source: "typo3.net"
tags: ["TYPO3","Menüs","Frage"]
created: "2010-07-01"
last_reply: "2010-07-01"
replies: 1
solved: false
page: 1
pages: 1
lang: "de"
---

# sectionindex links mixed menu

TYPO3 › Menüs · 1 Antwort · gestartet 2010-07-01

## Eröffnungsbeitrag

**rpretory** · 2010-07-01 · [Beitrag #1](https://www.typo3.net/d/99741-sectionindex-links-mixed-menu/1)

HAllo Leute

Hat jemand eine Idee:

wie ich ein menu erstellen kann das
nach dem aktiven menupunkt den seiteninhalt (sectionindex) einblendet??

Für Hilfe Sehr Dankbar
RP

## Antworten

### [#2](https://www.typo3.net/d/99741-sectionindex-links-mixed-menu/2) · chr1s · 2010-07-01

Hallo,

Vor einiger Zeit habe ich mir aus dem Netz diese Lösung zusammengebastelt:

Ich habe eine zweigeteilte Navigation (1.Ebenen horizontal, ab 2.Ebene links vertikal)

temp.nav-main ist das TS für die Navigation ab der 2.Ebene

```typoscript
temp.nav-main = HMENU
temp.nav-main {

	1 = TMENU
	1 {
		wrap = <div class="main-navigation"><ul class="nav-main">|</ul></div>
		noBlur = 1
		NO = 1
		NO.stdWrap.cObject = COA
		NO.stdWrap.cObject {
       		10 = TEXT
        	10.field = subtitle // title
		}
		NO {
			wrapItemAndSub = <li class="no">|</li>
			stdWrap.htmlSpecialChars = 0
		   }
        IFSUB < .NO 
        IFSUB.wrapItemAndSub = <li class="ifsub">|</li>  
        ACT = 1
        ACT < .NO
        ACT.wrapItemAndSub = <li class="act">|</li>
        ACTIFSUB = 1
        ACTIFSUB < .NO
        ACTIFSUB.wrapItemAndSub = <li class="actifsub">|</li>
	}
	2 < .1
	2.wrap = <ul>|</ul>
	3 < .2
	4 < .2
}
```

Auf den Seiten, auf denen ich unterhalb der 2. Ebene den Sectionindex abbilden will, habe ich die lib.nav-main abgeändert:
(das TS ist für eine 2-sprachige Site)

```typoscript
# LEFT VERTICAL MAIN MENU
[globalVar = GP:L < 1]
lib.nav-main {
	2 {
	sectionIndex = 1
	stdWrap.cObject = COA
	stdWrap.cObject {
    5 = CONTENT
	5{
	table = tt_content
	renderObj = TEXT
	renderObj {
		ATagBeforeWrap = 1
    	if.isTrue.field=sectionIndex
		wrap = <li class="anker">|</li>
		field = header
        typolink.parameter.dataWrap=|#{field:uid} 
           }
        }
     }
   }
}
[global]


[globalVar = GP:L = 1]
#Anker loeschen
tt_content.stdWrap.dataWrap >
lib.nav-main {
	2 {
	sectionIndex = 1
	stdWrap.cObject = COA
	stdWrap.cObject {
    5 = CONTENT
	5{
	table = tt_content
	renderObj = TEXT
	renderObj {
		ATagBeforeWrap = 1
    		if.isTrue.field=sectionIndex
		fieldRequired=_LOCALIZED_UID
		wrap = <li class="anker">|</li>
		field = header
		typolink.parameter.dataWrap=|#{field:_LOCALIZED_UID} 
           }
        }
     }
   }
}

[global]
```

Grüße
Christiane

---

Quelle: „sectionindex links mixed menu“, typo3.net, https://www.typo3.net/d/99741-sectionindex-links-mixed-menu
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
