Zum Inhalt springen

HMENU: Aktuellem Oberpunkt bestimmte Klasse zuweisen

Erstellt am 29. Januar 2011 · 1 Antwort · letzte Antwort am 31. Januar 2011

Tags: Frage

Marc Gee ·

Hallo TYPO3-Freunde,

ich brauche mal wieder eure Hilfe.

Folgendes Menü:

page.20 = TEMPLATE
page.20 {
template = FILE
template.file = fileadmin/templates/template1.html
workOnSubpart = document
subparts.CONTENT < styles.content.get

subparts.NAVIGATION = HMENU
subparts.NAVIGATION {

special = directory
special.value = 1

1 = TMENU
1 {
wrap = <ul class="tabbed">|</ul>
        // a Link im Normalzustand
NO.linkWrap = <li>|</li>
NO = 1

CUR < .NO
CUR = 1
CUR.linkWrap = <li class="current_page_item">|</li>
}  
}

Nun muss nur noch der Aktuelle Oberpunkt eine bestimmte Klasse haben.
Wie weise ich die Klasse zu?

Ich glaube mit ACTIFSUB geht das, nur wie???
Danke im Voraus!
Marc

hwt ·

Hi,

das geht genauso wie bei NO und ACT.

ACTIFSUB = 1
ACTIFSUB.linkWrap = <li class="active_page_item_withsub">|</li>

Allerdings hast du in dem geposteten TS ja nur eine Ebene die angezeigt wird.

MfG!