NAVIGATION
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} experimental support for menu items based on articles article added (FA, PA, FPA). Parameter 9 can be used to defined the articlemenu start level depth.
Short explanation: (see also NAV_LIST_UL full example css file)
Tag:
{NAV_LIST_UL: 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)
Filename: –
Folder: – (System)
Condition: –
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>)”
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”
E.g.: {NAV_LIST_UL:F, 19, 10, act_path, active, id, 2, <em>|</em>, 2} (Not a real one).
No | Exapmple | parameter | comment |
---|---|---|---|
1 | F | menu_type[[F,VCSS,HCSS]P] | - F = active path unfolded, |
2 | 19 | start_id | Point of start (The ID you see at site structure) |
3 | 10 | max_level | From start_id X level deep |
4 | act_path | class_path | <ul class=“act_path”> |
5 | active | class_active | <ul class=“act_path”> |
6 | id | ul_id_name | individual name (ID=Category-ID) for ul_id and li_id |
7 | 2 | wrap_ul_div ( | wrapping a div container around every <ul>…..</ul> |
- | 0 = off | nothing | |
- | 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> (beginning of the article link output starting from the second level) (since v1.4.4 r387 (03.12.2009)) |
xx | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
⇒ And several combinations of this reproduced stuff.
{NAV_LIST_UL:P,0,,current|menu responsive-menu,current}
to achieve something like
<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>
to handle more than one class in a responsive menu (responsive is the new gimmick, you know ;) )
articlemenu_start_level|articlemenu_list_image_size (WxHxCROP OR WxHxCROP)|articlemenu_use_text (take text from: description:MAXLEN OR menutitle:MAXLEN OR teaser:MAXLEN OR teaser:HTML)|articlemenu_position (inside|outside)|<custom>[TEXT]{TEXT}[/TEXT][IMAGE]<img src=”{IMAGE}” alt=”{IMAGE_NAME}”>[/IMAGE]</custom>