Zum Inhalt springen

menu zu/aufgeklappt

Erstellt am 11. Februar 2006 · 6 Antworten · letzte Antwort am 13. Februar 2006

Tags: Frage

andres ·

hallo
ich möchte in meinem menu das das untermenu aukgeklappt bleibt (MENU_LINKS.1.expAll = 1)und die menupunkte unter dem untermenu erst aufklappen wenn sie gebraucht werden
wie mach ich das?

      MENU_LINKS = HMENU
      MENU_LINKS.1.expAll = 1
   	  MENU_LINKS {
              special = directory
              special.value = 43

              entryLevel = 0
              1 = TMENU
              1 {
                      noBlur = 1
                      wrap = <ul>|</ul>
                      NO = 1
                      NO {
                            ATagTitle.field = abstract // description // title
                             wrapItemAndSub = <li>|</li> 
                      }




                      CUR < .NO
                      ###############CUR.doNotLinkIt = 1
              }
              2 < .1
              3 < .1

      }
      MENU_LINKS = HMENU
      MENU_LINKS.1.expAll = 1
   	  MENU_LINKS {
              special = directory
              special.value = 43

              entryLevel = 0
              1 = TMENU
              1 {
                      noBlur = 1
                      wrap = <ul>|</ul>
                      NO = 1
                      NO {
                            ATagTitle.field = abstract // description // title
                             wrapItemAndSub = <li>|</li> 
                      }




                      CUR < .NO
                      ###############CUR.doNotLinkIt = 1
              }
              2 < .1
              3 < .1

      }
tribble ·

Mite expAll legst Du fest, ob alle Punkte gezeigt werden sollen oder nur die aktiven.

Also
1.expAll = 1 zeigt immer alle Menüpunkte der ersten Ebene
2.expAll = 0 zeigt nut die Untermenüs von 1, beim aktiven Element von 1.

Liebe Grüße
Falk

andres ·

also ich weiss nicht recht ob ich dich richtig verstanden habe. indieser variante mit 2.expAll = 0
wird gar kein untermenu angezeigt

      MENU_LINKS = HMENU
      MENU_LINKS.2.expAll =0


   	  MENU_LINKS {
              special = directory
              special.value = 43

              entryLevel = 0
              1 = TMENU
              1 {
                      noBlur = 1
                      wrap = <ul>|</ul>
                      NO = 1
                      NO {
                            ATagTitle.field = abstract // description // title
                             wrapItemAndSub = <li>|</li> 
                      }




                      CUR < .NO
                      ###############CUR.doNotLinkIt = 1
              }
              2 < .1
              3 < .1

      }
tribble ·

Du musst beide nehmen. Und in der richtigen Reihenfolge belegen.

MENU_LINKS = HMENU
MENU_LINKS {
  special = directory
  special.value = 43
  entryLevel = 0
  1 = TMENU
  1 {
    expAll = 1 # zeigt alle Menüpunkte dieser Ebene immer an
    noBlur = 1
    wrap = <ul>|</ul>
    NO = 1
    NO {
      ATagTitle.field = abstract // description // title
      wrapItemAndSub = <li>|</li>
    }
    CUR < .NO
    CUR.doNotLinkIt = 1
  }
  2 < .1
  2.expAll = 0 # Zeigt Menüpunkte dieser ebene nur an, wenn das zugehörige Obermenü aktiv ist.
  3 < .2
}

Hoffe es klappt so bei Dir 🙂

Gruß
Falk

andres ·

danke für deinen tip! aber es funktioniert so nicht. das zweite untermenu bleibt so immer geschlossen.

gruss andres

andres ·

hallo
ja genau so!
bei mir funtioniert das aber nicht. keine ahnung warum.
vielen dank noch für das beispiel
andres