Antwort
 
LinkBack Themen-Optionen Thema bewerten Ansicht
  #1  
Alt 04.04.08, 16:43
Forum Zuschauer
 
Registriert seit: 04.04.08
Alter: 26
Beiträge: 1

2 level menu but not nested.


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).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ä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


Alle Zeitangaben in WEZ +1. Es ist jetzt 07:27 Uhr.


Powered by vBulletin® Version 3.7.3 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0