left navigation

Discuss phpwcms here, please do not post support requests, bug reports, or feature requests! Non-phpwcms questions, discussion goes in General Chat!
Post Reply
bepposun
Posts: 16
Joined: Fri 22. Jun 2007, 17:28

left navigation

Post 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
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post 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
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
bepposun
Posts: 16
Joined: Fri 22. Jun 2007, 17:28

works

Post by bepposun »

Cool. this did the trick ;)

Is there anywhere a docu for this syntax?

Cheers, Beppo
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post 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".
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
Post Reply