![]() |
| | LinkBack | Themen-Optionen | Thema bewerten | Ansicht |
|
#1
| |||
| |||
Hi there! I would be very glad if someone can help me out with my 2 level menu problem. As final result I would like to have menus looking like that: If there is no link visited we show only first level: <ul id="navigation_first"> <li class="first"><a href="something">Link1</a></li> <li><a href="something">Link1</a></li> <li><a href="something">Link1</a></li> </ul> When user click on some link and there are sub pages , then 2. level menu should appear just afer first menu in seperate ul not nested in to the first one. So it would look like this: <ul id="navigation_first"> <li class="first act"><a href="something">Link1</a></li> <li><a href="something">Link2</a></li> <li><a href="something">Link3</a></li> </ul> <ul id="navigation_second"> <li class="first act"><a href="something">Sub Link1</a></li> <li><a href="something">Sub Link2</a></li> <li><a href="something">Sub Link3</a></li> </ul> ..... One level I can create easyly with code like this: temp.tmenu = HMENU temp.tmenu.special = directory temp.tmenu.special.value = 13 temp.tmenu { 1 = TMENU 1.wrap = <ul id="navigation_first">|</ul> 1 { # no state: formatting for normal items NO{ allWrap = <li class="first">|</li> |*| <li>|</li> } # act state: valid from the rootpage to the actual page ACT=1 ACT{ allWrap = <li class="first act">|</li> } # cur state: valid for the actual page CUR=1 CUR{ allWrap = <li class="act first">|</li> |*| <li class="act">|</li> } } } but i dont know how to create second level. I tryed many solution but neither one worked in that way, so for keep it simple I didn't even include code here. Also keep in mind that I want to show menu from page with ID 13 and not from the root. I would be very very glad if someone could give me some hint. It can be in German I can understand it, i'm just not good at writing ![]() Regards from Slovenia, Grega Geändert von opxy (04.04.08 um 16:56 Uhr). |
![]() |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | Thema bewerten |
| |
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| 1-Level Menü in 2 Bereiche geteilt | DarkNemesis | GMENU, HMENU, TMENU und Co. | 1 | 08.05.08 13:32 |
| Gelöst HMENU Problem bei Mischung: level 1 = GMENU / Level 2 = TMENU | bluefire | GMENU, HMENU, TMENU und Co. | 1 | 15.04.08 09:18 |
| Menu Level 2 weg | sirride | TYPO3 4.x Fragen und Probleme | 24 | 19.10.07 11:49 |
| Trennung zwischen Menü Level 1 und 2 | labskaus | GMENU, HMENU, TMENU und Co. | 2 | 15.08.06 16:40 |
| Menu darstellung pro level anpassen | madmongo | GMENU, HMENU, TMENU und Co. | 3 | 10.03.06 08:18 |