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.
NAV_LIST_LEVEL
http://www.studmed.dk Portal for doctors and medical students in Denmark
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.
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.
{MY_LEVEL_NAV:2} //0=1. level 1=sublevel 2=subsublevelKalika 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.
http://www.studmed.dk Portal for doctors and medical students in Denmark
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.
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.