Liebe Gemeinde,
ich bin dabei eine barriefreie Website mit typo3 zu entwickeln. Die Navigation soll dabei al Liste verwirklicht werden und 2 Hierarchieebenen haben. ich möchte die ausgewählten Listenelemente (=aktuelle Position) andersfarbig markieren, was auf der 1. Ebene auch klappt. Auf der 2. Ebene wird aber der komplette Hierarchiezweig markiert, weil mein schliessendes span-tag an der falschen Stelle steht:
--------------------------------
Ich habe es jetzt so:
<ul>
<li><span id="active">Punkt 1
<ul>
<li><a href="176.html">Punkt 1.1</a></li>
</ul>
</span></li></ul>
--------------------------------
Bräuchte es aber so (andere Position des schliessenden span-Tags):
<ul>
<li><span id="active">Punkt 1</span>
<ul>
<li><a href="176.html">Punkt 1.1</a></li>
</ul>
</li>
<ul>
--------------------------------
Erzeugen tue ich das mit folgendem (geklauten) Template-Schnipsel:
# Construct the main menu as a nested unordered list.
# It has level1 and level2 entries.
# All formatting will be done via CSS.
MENU_LINKS = COA
MENU_LINKS {
# the menu object itself, starting off the site root
10 = HMENU
10.entryLevel = 1
10.special.value = 167
# Level1 entries are simple text menu entries,
# (formatted via CSS to run down the left side of the page)
10.1 = TMENU
10.1 {
noBlur = 1
CUR = 1
ACTIFSUB = 1
}
# Base formatting of menu entries as list items.
10.1.NO {
wrapItemAndSub = <li>|</li>
ATagParams =
}
# Current menu item is unlinked and marked
10.1.CUR {
wrapItemAndSub = <li><span id="active">|</span></li>
doNotLinkIt = 1
}
# Active items above current to be formatted differently
10.1.ACTIFSUB {
wrapItemAndSub = <li>|</li>
}
# Wrap the level1 menu inside an unordered list
10.1.wrap = <ul>|</ul>
# Level2 entries are simple text menu entries also,
# (formatted very differently via CSS to run left to right
# across the page under the header, so you only see the styling
# classes here.)
10.2 = TMENU
10.2 {
noBlur = 1
CUR = 1
ACTIFSUB = 1
}
# Same formatting of menu entries as list items.
10.2.NO {
wrapItemAndSub = <li>|</li>
ATagParams =
}
# Current menu item is unlinked and marked too
10.2.CUR {
wrapItemAndSub = <li><span id="active">|</span></li>
doNotLinkIt = 1
}
# Active items above current to be formatted differently as for level1
10.2.ACTIFSUB {
wrapItemAndSub = <li><span id="active">|</span></li>
}
# Wrap the level2 menu inside an unordered list
10.2.wrap = <ul>|</ul>
}
Kann mir jemand sagen wie ich das Template ändern muss um mein schliessendes span-Tag an die richtige Stelle zu bekommen? Schon mal herzlichen Dank für die Hilfe und viele Grüße,
Max