NAVIGATION
This is an old revision of the document!
Docu: –
Forum: http://forum.phpwcms.org/viewtopic.php?t=12165
Autor: K.Heermann (flip-flop) http://planmatrix.de
CMS-Version: >= V1.2.7
CMS-Version: >= V1.4.4 r387
Version: 1.1
Update: V1.0 → V1.1 ab CMS V1.4.4 r387 (03.12.2009)
- {NAV_LIST_UL} Experimentielle Unterstützung für Menüeinträge basierend auf Artikeln hinzugefügt (FA, PA, FPA).
- Mit dem Parameter 9 kann das Start-Level (Ebene) für das Artikelmenü festgelegt werden.
Zusammenstellung der einzelnen Tags für die Navigation NAV_LIST_UL
Tag:
{NAV_LIST_UL: menu_type, start_id, max_level, class_path, class_active_li|class_active_a, ul_id_name, wrap_ul_div(0=off, 1=<div>, 2=<div id="">, 3=<div class="navLevel-x">), wrap_link_text(<em>|</em>, articlemenu_start_level)
Dateiname: –
Verzeichnis: – (System)
Bedingung: –
V1.0 ⇒ CMS V1.5.x r424 (18.09.2011) + Separate Klassen bei aktivem Link und aktivem Artkiel wenn menu_type “A” beinhaltet.
@string $parameter =
“menu_type, start_id, max_level, class_path, class_active_li|class_active_a, ul_id_name, wrap_ul_div(0 = off, 1 = <div>, 2 = <div id=””>, 3 = <div class=“navLevel-x”>), wrap_link_text(<em>|</em>), articlemenu_start_level”
V1.0 ⇒ CMS V1.4.4 r387 (03.12.2009)
@string $parameter =
“menu_type, start_id, max_level, class_path, class_active, ul_id_name, wrap_ul_div(0 = off, 1 = <div>, 2 = <div id=””>, 3 = <div class=“navLevel-x”>), wrap_link_text(<em>|</em>), articlemenu_start_level”
V1.0 < CMS V1.4.4 r386 (29.11.2009)
@string $parameter =
“menu_type, start_id, max_level, class_path, class_active, ul_id_name, wrap_ul_div(0 = off, 1 = <div>, 2 = <div id=””>, 3 = <div class=“navLevel-x”>), wrap_link_text(<em>|</em>)”
E.g.: {NAV_LIST_UL:F, 19, 10, act_path, class_active_li|class_active_a, id, 2, <em>|</em>, 2} (Nicht der Realität entsprechend).
No | Beispiel | Parameter | Kommentar |
---|---|---|---|
1 | F | menu_type[[[F,VCSS,HCSS]P]A] | - F = aktiver Pfad aufgeklappt, |
2 | 19 | start_id | Startpunkt (Die ID ist in der Seitenstruktur sichtbar) |
3 | 10 | max_level | Ab der start_id X-Ebenen tief |
4 | act_path | class_path | <ul class=“act_path”> |
5 | active | class_active | <ul class=“act_path”> |
5A | active_li|active_a | class_active_li|class_active_a | <ul class=“act_path”> |
6 | id | ul_id_name | individueller Name (ID=Kategorie-ID) für ul_id und li_id |
7 | 2 | wrap_ul_div ( | Legt einen div Container um jedes <ul>…..</ul> |
- | 0 = off | nichts | |
- | 1 = <div> | <ul> |
|
- | 2 = <div id=””> | <ul> |
|
- | 3 = <div class=“navLevel-x”> | <div class=“navLevel-0”>
<ul> |
|
- | ) | ||
8 | <em>|</em> | wrap_link_text(<em>|</em>) | <li class=“sub_no”><a href=”….”><em>Link Text</em></a></li> |
9 | 2 | articlemenu_start_level | <li class=“asub_no [asub_first] [active]>”<a href=”….”></li> (beginn der Artikellinkausgabe ab der zweiten Ebene) (ab v1.4.4 r387 (03.12.2009)) |
xx | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
⇒ Und viele andere Kombinationen dieser Tags …..
{NAV_LIST_UL:P,0,,current|menu responsive-menu,current}
um etwas zu bekommen wie
<ul class="menu responsive-menu"> <li class="sub_parent current"><a href="index.php?index" title="Home">Home</a></li> <li class="sub_no sub_first"><a href="index.php?kontakt" title="Kontakt">Kontakt</a></li> <li class="sub_no sub_last"><a href="index.php?impressum" title="Impressum">Impressum</a></li> </ul>
Das verarbeitet nun mehr als eine class in einem responsive Menü (responsive ist der neue Weihnachtsbaum, you know ;) )