Zum Inhalt springen

Menu mit CSS und Hauptpunkten

Erstellt am 24. Juli 2008 · 2 Antworten · letzte Antwort am 25. Juli 2008

Tags: Frage

markus_web ·

Hallo,

ich hab eine Frage und zwar was machen ich in meinem TypoScript faltsch?

Ich wollte die Aktuellen Navigationspunkte mit dem Higliting aus der CSS versehen genauso wollte ich die Unterpunkte anhand der CSS stylen

temp.menu = HMENU
temp.menu  {
        special = directory
        special.value = 3
        entryLevel = 0
        1 = TMENU
        1 {
                noBlur = 1
                wrap =  <ul>|</ul>
                NO = 1
                NO {
                      ATagTitle.field = abstract // description // title
                      wrapItemAndSub = <li>|</li>
                }
                CUR = { wrapItem = <li class="flag">|</li>
                      }
                CUR.doNotLinkIt = 1
        }
        2 = TMENU
        2 {
                noBlur = 1
                wrap =  <ul class="sub1">|</ul>
                NO = 1
                NO {
                      ATagTitle.field = abstract // description // title
                      wrapItemAndSub = <li class="sub1">|</li>
                }
                CUR = { wrapItem = <li class="flag">|</li>
                      }
                CUR.doNotLinkIt = 1
        }
        3 < .1
        4 < .1
        }

Vielen Dank

Unbekannter Benutzer ·

Was du falsch machst ist leicht gesagt: Falscher Syntax.

CUR = {... gibts nicht ... wo hast du das her?
wrapItem gibts auch nicht...

entryLevel und special =directory und special.value gehört nicht zusammen, funktioniert nicht zusammen und macht einfach keinen Sinn. Streich das entryLevel raus.

Und dann kannst du es mal so versuchen:

temp.menu = HMENU
temp.menu  {
        special = directory
        special.value = 3
        1 = TMENU
        1 {
                noBlur = 1
                wrap =  <ul>|</ul>
                NO = 1
                NO {
                      ATagTitle.field = abstract // description // title
                      wrapItemAndSub = <li>|</li>
                }
                CUR < .NO
                CUR {
                      wrapItemAndSub = <li class="flag">|</li>
                      doNotLinkIt = 1
                }
        }
        2 = TMENU
        2 {
                noBlur = 1
                wrap =  <ul class="sub1">|</ul>
                NO = 1
                NO {
                      ATagTitle.field = abstract // description // title
                      wrapItemAndSub = <li class="sub1">|</li>
                }
                CUR < .NO
                CUR {
                      wrapItemAndSub = <li class="flag">|</li>
                      doNotLinkIt = 1
                }
        }
        3 < .1
        4 < .1
}