Zum Inhalt springen

SysFolder: zweites Level für Menü ansprechen

Erstellt am 14. Februar 2005 · 5 Antworten · letzte Antwort am 14. Februar 2005

Tags: Frage

johanness ·

Hallo Leute,

ich habe eine sysFolder (id=34), mit Seiten und Unterseiten. Es geht als 2 Eben tief rein in diesen SysOrdner.

Wie spreche ich nun die zweite Ebene an?

Ich habe bisher folgendes:

### Für die erste Ebene das Hauptmenü erzeugen >>> Klappt gut
temp.main = HMENU
temp.main.special = directory
temp.main.special.value = 34

temp.main.1 = GMENU
temp.main.1 {
  NO = 1
  NO {
    #...
  }
}
### Für die zweite Ebene das Untermenü erzeugen >>> Klappt NICHT
temp.sub = HMENU
temp.sub.special = directory
temp.sub.special.value = 34
temp.sub.entryLevel = 1

temp.sub.1 = TMENU
temp.sub.1 {
    NO = 1
    NO.linkWrap = <div class="subItem">|</div>
  }
}
hardcoder ·

Hi,

TsRef:

The .special property
This property makes it possible to create menus that are not strictly reflecting the current page-structure, but rather creating menus with links to pages like "next/previous", "last modified", "pages in a certain page" and so on.

NOTE: Don't set .entryLevel for a HMENU when using this option! Also be aware that this selects pages for the first level in the menu. Submenus by menuPbjects 2+ will be created as usual.

johanness ·
hardcoder schrieb

NOTE: Don't set .entryLevel for a HMENU when using this option! Also be aware that this selects pages for the first level in the menu. Submenus by menuPbjects 2+ will be created as usual.

Und was sagt uns das jetzt? 😉
Wie muss dann das temporäre Codeschnippsel, welches bei einem Marker eingebunden wird, aussehen, damit es geht?

Danke,
Johannes

johanness ·

Müsste es dann so aussehen? Klappt aber nicht - also gehe ich davon aus, dass es falsch ist!

temp.sub = HMENU
temp.sub.special = directory
temp.sub.special.value = 34

temp.sub.2 = TMENU
temp.sub.2 {
  NO = 1
  NO.linkWrap = <div class="subItem">|</div>
}
hardcoder ·
### Für die erste Ebene das Hauptmenü erzeugen >>> Klappt gut 
temp.main = HMENU 
temp.main.special = directory 
temp.main.special.value = 34 

temp.main.1 = GMENU 
temp.main.1 { 
  NO = 1 
  NO { 
    #... 
  } 
} 

temp.main.2 = TMENU 
temp.main.2 { 
    NO = 1 
    NO.linkWrap = <div class="subItem">|</div> 
  } 
}
johanness ·

Klar so geht's.
Ich kann das untermenü aber nicht bei dem MAIN-Marker brauchen. Das muss doch zum Marker SUB. Was nun?