NAV_LIST_LEVEL

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
Kalika
Posts: 26
Joined: Wed 24. Mar 2004, 23:27

NAV_LIST_LEVEL

Post by Kalika »

Hi!
II need to show a particular level structure in a page as a list.
Somethng like {NAV_LIST_LEVEL} to show not only the first level or the current but, for example, the previous level.
Any suggestion?

Thanks!

K.
frold
Posts: 2151
Joined: Tue 25. Nov 2003, 22:42

Post by frold »

http://www.studmed.dk Portal for doctors and medical students in Denmark
Kalika
Posts: 26
Joined: Wed 24. Mar 2004, 23:27

Post by Kalika »

Thank you frold.
I tried out with {MY_LEVEL_NAV} but I can't get it work correctly.
In the script posted by Oliver there is this comment:
// equal template_defaults for all NAV_ROW
// don't forget to use $GLOBALS when using this in function
// like: $GLOBALS['template_default']["nav_row"]["after"]
// and : $GLOBALS['LEVEL_ID']
So sorry for the stupid question, but I can't understand how to use $GLOBALS to make my menu structure works.
Now if I insert {MY_LEVEL_NAV} it doesn't show anything.
Trying with different cases I get only errors.
Any help?

Thank you!

K.
Kalika
Posts: 26
Joined: Wed 24. Mar 2004, 23:27

Post by Kalika »

Ok.
I can now show the menu using the {MY_LEVEL_NAV} R tag, but I can't use it with the switch case I need.
Suppose I need to shw only the level structure 2.
How can I do it without change the script, using the replacement tag?

Thanks for all you do and all you're great support!

K.
frold
Posts: 2151
Joined: Tue 25. Nov 2003, 22:42

Post by frold »

Kalika wrote:Ok.
I can now show the menu using the {MY_LEVEL_NAV} R tag, but I can't use it with the switch case I need.
Suppose I need to shw only the level structure 2.
How can I do it without change the script, using the replacement tag?

Thanks for all you do and all you're great support!

K.
{MY_LEVEL_NAV:2} //0=1. level 1=sublevel 2=subsublevel
http://www.studmed.dk Portal for doctors and medical students in Denmark
Kalika
Posts: 26
Joined: Wed 24. Mar 2004, 23:27

Post by Kalika »

It doesn't work for me.
When I put {MY_LEVEL_NAV:2} for ex. I get {MY_LEVEL_NAV:2} printed on the page as if an error occured.
It seems like the switch case doesn't work.
Maybe there is something else to change?
I have copied the code from Oliver in phpwcms_template/inc_script/frontend_render/sublevelnav.php
than I have insert that piece of code in the content.func.inc.php
Both $phpwcms["allow_ext_init"] and $phpwcms["allow_ext_render"] are set to =1.
What else?

Thanks!

K.
Post Reply