Zum Inhalt springen

Menü

Erstellt am 4. Februar 2013 · 2 Antworten · letzte Antwort am 5. Februar 2013

Tags: Frage

sajuka ·

Hallo,
ich habe ein Problem, die Untermenüpunkte von meinem Menü funktionieren nicht.
Kann mir bitte jemand helfen!? Danke
Im Anhang befindet sich die html und css datei.

das wäre der
Typoscript Code:
# Default PAGE object:
#Hauptmenu#

temp.menu = HMENU
temp.menu {

special = list
special.value = 149, 150, 151, 152
1 = TMENU
1 {
expAll = 1
wrap = <ul id="nav">|</ul>
noBlur = 1
NO = 1
NO.wrapItemAndSub = <li>|</li>
IFSUB = 1
IFSUB.wrapItemAndSub = <li>|</li>
ACTIFSUB < .IFSUB
ACT = NO
ACT.wrapItemAndSub = <li class="menuparent">|</li>

2 < .1
2.wrap = <ul>|</ul>

3 < .2
4 < .2

}
}
temp.menu2 = HMENU
temp.menu2 {
special = list
special.value = 157, 158, 159, 160
1 = TMENU

1.NO.allWrap = <li>|</li> <br>
}

temp.menu4 = HMENU
temp.menu4 {
special = list
special.value = 161, 162

1 = TMENU

1.NO.allWrap = &nbsp;
#1.NO.linkWrap = <ul>|</ul>

}
#Template#
page = PAGE

config.doctype = html_5

page.includeCSS.file10= fileadmin/template/Shiatsu/styles.css

page.10 = TEMPLATE

page.10 {

template = FILE
template.file = fileadmin/template/Shiatsu/template_shiatsu.html

workOnSubpart = DOCUMENT_BODY

marks.MENU < temp.menu
marks.TEXT < styles.content.get
marks.MENU2 < temp.menu2
marks.MENU4 < temp.menu4
}

page.headerData.60 = TEXT
page.headerData.60.value = <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>

projekt.zip
16kB
bugblatterbeast ·

Du hast folgendes geschrieben:

temp.menu = HMENU
temp.menu {
  special = list
  special.value = 149, 150, 151, 152
  1 = TMENU
  1 {
    expAll = 1
    wrap = <ul id="nav">|</ul>
    noBlur = 1
    NO = 1
    NO.wrapItemAndSub = <li>|</li>
    IFSUB = 1
    IFSUB.wrapItemAndSub = <li>|</li>
    ACTIFSUB < .IFSUB
    ACT = NO
    ACT.wrapItemAndSub = <li class="menuparent">|</li>

    2 < .1
    2.wrap = <ul>|</ul>

    3 < .2
    4 < .2
  }
}

Wenn Du den Code richtig eingerückt hättest, wäre Dir bestimmt selbst aufgefallen, dass die Klammern ganz falsch gesetzt sind. Ich habe es nicht ausprobiert, aber so müßte es funktionieren:

temp.menu = HMENU
temp.menu {
  special = list
  special.value = 149, 150, 151, 152
  1 = TMENU
  1 {
    expAll = 1
    wrap = <ul id="nav">|</ul>
    noBlur = 1
    NO = 1
    NO.wrapItemAndSub = <li>|</li>
    IFSUB = 1
    IFSUB.wrapItemAndSub = <li>|</li>
    ACTIFSUB < .IFSUB
    ACT = NO
    ACT.wrapItemAndSub = <li class="menuparent">|</li>
  }
  2 < .1
  2.wrap = <ul>|</ul>

  3 < .2
  4 < .2
}