Antwort
 
LinkBack Themen-Optionen Thema bewerten Ansicht
  #1  
Alt 08.01.06, 17:51
Benutzerbild von mic_jan
TYPO3 Forum Team
Administrator
 
Registriert seit: 05.09.04
Ort: Köln
Beiträge: 1.434

Komisches Verhalten von Li-Menü


Hi,

ich wollte jetzt mal ein valides mehrstufiges Menü in eine Seite einbauen. Und da ich manchma ein bißchen faul bin, habe ich folgenden Code genommen:

Typoscript-Code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
temp.mainnavi = COA
temp.mainnavi {
10 = HMENU
10 {
1 = TMENU
1 {
NO = 1
CUR = 1
ACT = 1
noBlur = 1
expAll = 0
collapse = 1
wrap = <ul class="ullevel1">|</ul>
NO {
linkWrap = |
wrapItemAndSub = <li class="li1no">|</li>
ATagParams = class="a1no"
doNotLinkIt = 0
}
CUR < .NO
CUR {
wrapItemAndSub = <li class="li1act">|</li>
ATagParams = class="a1act"
}
ACT < .CUR
}

2 < .1
2 {
wrap = <ul class="ullevel2">|</ul>
NO.wrapItemAndSub = <li class="li2no">|</li>
NO.ATagParams = class="a2no"
CUR.wrapItemAndSub = <li class="li2act">|</li>
CUR.ATagParams = class="a2act"
ACT < .CUR
}

3 < .1
3 {
wrap = <ul class="ullevel3">|</ul>
NO.wrapItemAndSub = <li class="li3no">|</li>
NO.ATagParams = class="a3no"
CUR.wrapItemAndSub = <li class="li3act">|</li>
CUR.ATagParams = class="a3act"
ACT < .CUR
}
}
}
Quelle: http://ug.typo3-nrw.de/71.html

Nur leider habe ich da ein Problem: Die aktuelle Seite hat immer die ID von der Rootpage :-| Und wenn ich in Untermenüs gehe, dann hat die jeweilige Seite nach dem Aufrufen immer die ID der übergeordneten Seite.

Vielleicht kann mir jemand sagen, woran es liegt!?

Lieben Gruss,

Michael
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
  #2  
Alt 09.01.06, 09:37
Benutzerbild von ben
ben ben ist offline
Forum Stammgast
 
Registriert seit: 07.03.05
Ort: Düsseldorf
Beiträge: 189
ben eine Nachricht über ICQ schicken

So keine Lust mir den Code groß anzuschauen, daher hier einfach mein Barrierefreies Menü, inkl. DFN-Tags:

Typoscript-Code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
temp.nav_links = COA
temp.nav_links {
    # the menu object itself, starting off the site root
10 = HMENU
10.entryLevel = {$menu_entry_links}


    # Level1 entries are simple text menu entries,
    # (formatted via CSS to run down the left side of the page)
10.1 = TMENU
  #DFN-FUnktion einschalten:
10.1.IProcFunc = user_IProc_dfn
10.1 {
      # Don't really like unneccessary scripting.
noBlur = 1
      # Current item should be unlinked and formatted differently.
    #CUR = 1
      # Active items above current item should be formatted differently.
ACTIFSUB = 1
ACT = 1
}

    # Base formatting of menu entries as list items.
10.1.NO {
wrapItemAndSub = <li class="menu2-lev1-no">|</li>
ATagParams =
}

    # Current menu item is unlinked and marked
10.1.CUR {
wrapItemAndSub = <li class="menu2-lev1-cur">|</li>
doNotLinkIt = 1
}

    # Active items above current to be formatted differently
10.1.ACTIFSUB {
wrapItemAndSub = <li class="menu2-lev1-act">|</li>
}
  # Active items above current to be formatted differently
10.1.ACT {
wrapItemAndSub = <li class="menu2-lev1-act">|</li>
}

    # Wrap the level1 menu inside an unordered list
10.1.wrap = <ul class="menu2-lev1">|</ul>


# Level2 entries are simple text menu entries,
    # (formatted via CSS to run down the left side of the page)
10.2 = TMENU
  #DFN-FUnktion einschalten:
10.2.IProcFunc = user_IProc_dfn
10.2 {
      # Don't really like unneccessary scripting.
noBlur = 1
      # Current item should be unlinked and formatted differently.
    #CUR = 1
      # Active items above current item should be formatted differently.
ACTIFSUB = 1
ACT = 1
}

    # Base formatting of menu entries as list items.
10.2.NO {
wrapItemAndSub = <li class="menu2-lev2-no">|</li>
ATagParams =
}

    # Current menu item is unlinked and marked
10.2.CUR {
wrapItemAndSub = <li class="menu2-lev2-cur">|</li>
doNotLinkIt = 1
}

    # Active items above current to be formatted differently
10.2.ACTIFSUB {
wrapItemAndSub = <li class="menu2-lev2-act">|</li>
}

  # Active items above current to be formatted differently
10.2.ACT {
wrapItemAndSub = <li class="menu2-lev2-act">|</li>
}

    # Wrap the level1 menu inside an unordered list
10.2.wrap = <ul class="menu2-lev2">|</ul>

# Level3 entries are simple text menu entries,
    # (formatted via CSS to run down the left side of the page)
  #10.3 = TMENU
  #DFN-FUnktion einschalten:
10.3.IProcFunc = user_IProc_dfn
10.3 {
      # Don't really like unneccessary scripting.
noBlur = 1
      # Current item should be unlinked and formatted differently.
    #CUR = 1
      # Active items above current item should be formatted differently.
ACTIFSUB = 1
ACT = 1
}

    # Base formatting of menu entries as list items.
10.3.NO {
wrapItemAndSub = <li class="menu2-lev3-no">|</li>
ATagParams =
}

    # Current menu item is unlinked and marked
10.3.CUR {
wrapItemAndSub = <li class="menu2-lev3-cur">|</li>
doNotLinkIt = 1
}

    # Active items above current to be formatted differently
10.3.ACTIFSUB {
wrapItemAndSub = <li class="menu2-lev3-act">|</li>
}

  # Active items above current to be formatted differently
10.3.ACT {
wrapItemAndSub = <li class="menu2-lev3-act">|</li>
}

    # Wrap the level1 menu inside an unordered list
10.3.wrap = <ul class="menu2-lev3">|</ul> - ERROR: Line 125: The script is short of 1 end brace(s)

Das funktioniert auch, Praxiserprobt
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
  #3  
Alt 09.01.06, 12:13
Benutzerbild von mic_jan
TYPO3 Forum Team
Administrator
 
Registriert seit: 05.09.04
Ort: Köln
Beiträge: 1.434

Danke, das funktioniert... trotzdem wüsste ich gerne, warum das andere so komisch war!? Naja egal, bastel ich jetzt erstmal einen neuen Stylesheet...

Lieben Gruss,

Michael
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
RealURL komisches Problem ghoti Suchmaschinenfreundliche URLs (SEO) 0 09.07.07 14:14
Charset - komisches Problem mit Umlauten sventb TYPO3 4.x Fragen und Probleme 2 08.01.07 15:02
Komisches Design zefix Änderungen 7 13.12.06 21:16
stdheader komisches problem mab82 TYPO3 4.x Fragen und Probleme 2 15.11.06 08:27
Komisches Resultat nach Installation toyoman TYPO3 4.x Installation und Updates 0 25.10.06 20:05


Alle Zeitangaben in WEZ +1. Es ist jetzt 11:00 Uhr.


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