---
title: "TMENU mit ACT und CUR"
url: "https://www.typo3.net/d/53746-tmenu-mit-act-und-cur"
source: "typo3.net"
tags: ["TYPO3","Menüs","Frage"]
created: "2006-11-21"
last_reply: "2006-11-23"
replies: 3
solved: false
page: 1
pages: 1
lang: "de"
---

# TMENU mit ACT und CUR

TYPO3 › Menüs · 3 Antworten · gestartet 2006-11-21

## Eröffnungsbeitrag

**maudi** · 2006-11-21 · [Beitrag #1](https://www.typo3.net/d/53746-tmenu-mit-act-und-cur/1)

Hallo zusammen,

ich bekomme es irgendwie nicht hin, dass ACT bzw. CUR was am Aussehen verändern  o.O

```typoscript
tmp.HAUPTNAVIGATION = HMENU
tmp.HAUPTNAVIGATION {
  1 = TMENU
  1 {
    NO = 1
    NO.wrapItemAndSub = <strong><ul>||</ul> |*| <ul>||</ul> |*| <ul>|</ul></strong>
    ACT = 1
    ACT < .NO
    ACT.wrapItemAndSub = <ul>||</ul> |*| <ul>||</ul> |*| <ul>|</ul>
    CUR = 1
    CUR < .NO
    CUR.wrapItemAndSub = <ul>||</ul> |*| <ul>||</ul> |*| <ul>|</ul>
    }
}
```

In der "Final" soll es so sein, dass der NO **fett** ist und der ausgewählte **fett und unterstrichen**
Zum testen habe ich NO = fett
und ACT + CUR = normale Schrift

Bin ich blind und sehen den Wald vor lauter Bäumen nicht oder bin ich aufn Holzweg?

Hoffe, dass ihr mir weiterhelfen könnt.

## Antworten

### [#2](https://www.typo3.net/d/53746-tmenu-mit-act-und-cur/2) · just2b · 2006-11-21

ins wrapItemAndSub gehört das <li>|</li> und wenn du bei CUR, NO, ACT jeweils eine unterschiedliche klasse einbauen würdest, würdest im output sehen was wofür ist

georg

### [#3](https://www.typo3.net/d/53746-tmenu-mit-act-und-cur/3) · maudi · 2006-11-21

Hallo just2B,

ich bekomm von dir jetzt bestimmt eine aufn Deckel ... aber bitte hab etwas Geduld mit mir:

ich habe jetzt folgendes gemacht:

```typoscript
tmp.HAUPTNAVIGATION = HMENU
tmp.HAUPTNAVIGATION {
  1 = TMENU
  1 {
    NO = 1
    NO.wrapItemAndSub = <div class="mainnavcontainer"><li>|&#124;</li> |*| <li>|&#124;</li> |*| <li>|</li></div>
    ACT = 1
    #ACT < .NO
    ACT.wrapItemAndSub = <div class="subnavicontainer"><li>|&#124;</li> |*| <li>|&#124;</li> |*| <li>|</li></li></div>
    CUR = 1
    #CUR < .NO
    CUR.wrapItemAndSub = <div class="subnavicontainer"><li>|&#124;</li> |*| <li>|&#124;</li> |*| <li>|</li></li></div>
    }
}
```

Problem: Hauptmenü soll oben horizontal laufen ... jetzt ist es aber 'ne Aufzählungsliste ... und Änderungen bei den Zuständen ist auch keiner zu sehen

mein Untermenü linke Seite vertikal klappt es so prima:

```typoscript
# Untermenü 2. Ebene 
tmp.SUBNAVIGATION = HMENU 
tmp.SUBNAVIGATION.entryLevel = 1 
tmp.SUBNAVIGATION.1 = TMENU 
tmp.SUBNAVIGATION.1.NO = 1 
tmp.SUBNAVIGATION.1.NO.linkWrap= <ul id="subnavicontainer"> |  <ul> 
tmp.SUBNAVIGATION.1.ACT = 1
tmp.SUBNAVIGATION.1.ACT.linkWrap= <strong><ul id="subnavicontainer"> |  <ul></strong>
tmp.SUBNAVIGATION.1.CUR = 1
tmp.SUBNAVIGATION.1.CUR.linkWrap= <strong><ul id="subnavicontainer"> |  <ul></strong>
```

mainnavcontainer und subnavicontainer sind unterschiedlich: 14/12 px und andere Schriftfarbe ... aber wie schon gesagt, eigentlich will ich das Hauptmenü bei ACT und CUR nur unterstreichen

### [#4](https://www.typo3.net/d/53746-tmenu-mit-act-und-cur/4) · toyde · 2006-11-23

```typoscript
    ACT = 1
    #ACT < .NO
    ACT.wrapItemAndSub = <div class="subnavicontainer"><li>||</li> |*| <li>||</li> |*| <li>|</li></li></div>
    CUR = 1
    #CUR < .NO
    CUR.wrapItemAndSub = <div class="subnavicontainer"><li>||</li> |*| <li>||</li> |*| <li>|</li></li></div>
```

Ich nehmen an, dass
a) Dir nicht klar ist, was CUR und was ACT im Endeffekt darstellen. Lass CUR doch einfach mal weg  ;) .
b) Du am besten z.B. unter de.selfhtml.org oder in Referenzen nachschlägst, wie eine Liste aufgebaut ist. Auf jeden Fall **nicht** mit "<div><li>.. ". In der Subnavigation hat's ja gepasst.

Hier ein Thread der sich mit Listen-Menüs befasst
» [/d/39055-menues-basierend-auf-css](https://www.typo3.net/d/39055-menues-basierend-auf-css)

grüsse

---

Quelle: „TMENU mit ACT und CUR“, typo3.net, https://www.typo3.net/d/53746-tmenu-mit-act-und-cur
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
