Page 1 of 1

left navigation

Posted: Thu 9. Aug 2007, 12:15
by bepposun
I think I'm on the wrong trail....

I'm trying to create a vertical menu which shows only a sub level and the levels behind using NAV_LIST_UL. For this I'm using a small PHP script to get the correct level:
[PHP]
if(isset($GLOBALS['LEVEL_ID'][3])) {
$level_id = $GLOBALS['LEVEL_ID'][3];
echo '<div class="nlu_navi1">'.LF;
echo '{NAV_LIST_UL:F,'.$level_id.',3,act_path,active}';
echo '</div>';
}
[/PHP]

Additional I'd like to show also the higher level (as kind of headline) on the left side.

For better understanding:

the complete menu is something like:
-menu1
-menu2
-menu3
--submenu31
--submenu32
--submenu33
---subsubmenu331
---subsubmenu332
---subsubmenu333
menu4
...

Goal is to have a left menu with

submenu33
-subsubmenu331
-subsubmenu332
-subsubmenu333

I'm pretty sure that there is an easy way to do it with the NAV_LIST_UL.

Thanks in advance, Beppo

Posted: Thu 9. Aug 2007, 13:55
by flip-flop
Hi Beppo,
submenu33
-subsubmenu331
-subsubmenu332
-subsubmenu333
please use the string {NAV_LIST_UL:FP,ID,..........} or {NAV_LIST_UL:P,ID,..........} -> for the Parent output. :wink: And have a look into the generated html-source. -> new classes.

Knut

works

Posted: Thu 9. Aug 2007, 14:03
by bepposun
Cool. this did the trick ;)

Is there anywhere a docu for this syntax?

Cheers, Beppo

Posted: Thu 9. Aug 2007, 14:19
by flip-flop
At this time, no. :?
But have a look into the changelog.txt
2007-04-07
[ADD] {NAV_LIST_UL} enhanced by "parent" setting which - additional modes: P, FP, HCSSP, VCSSP; working the same as modes without "P". Default class name is "sub_parent". If mode *P enabled parent structure level rendered as first <li>.
------------------------
2007-02-22
[ADD] {NAV_LIST_UL} enhanced by "id" for <li> in case "ul_id_name" is set. It will generate "id=li_ul_id_name_levelID". With this you can set individual styles for any level or trigger JavaScript actions.

[ADD] {NAV_LIST_UL} enhanced for additional sub level check but for "closed" structures only. If a sub level exists class "sub_no" is switched "to sub_no_ul".