Page 1 of 1

Print out only submenu

Posted: Mon Feb 07, 2011 7:17 am
by pustofkj
Hi all, I have two columns layout web pages with header and footer. On the bottom of the header I have main menu and I'd like to set the submenu on the right column of layout.

-----------------------------------------------------------
| HEADER_________________________________|
|________________________________________ |
-----------------------------------------------------------
| MAIN MENU______________________________ |
-----------------------------------------------------------
| RIGHT__________________ | LEFT_________|
| COLUMN_________________| COLUMN______|
| WITH___________________| WITH________ |
| CONTENT________________| SUBMENU_____ |
-----------------------------------------------------------
| FOOTER_________________________________|
-----------------------------------------------------------

Code for main menu is very easy:
{if $count > 0}
__{foreach from=$nodelist item=node}
____{if $node->depth == 1}
______<a href="{$node->url}">{$node->menutext}</a>
____{/if}
__{/foreach}
{/if}

but how can I get only submenu? (if it is possible) Thank you.

Re: Print out only submenu

Posted: Mon Feb 07, 2011 2:12 pm
by dropster
From the Menu Manager help

Code: Select all

(optional) number_of_levels="1" - This setting will only allow the menu to only display a certain number of levels deep.
and

Code: Select all

(optional) start_level="2" - This option will have the menu only display items starting a the given level. An easy example would be if you had one menu on the page with number_of_levels='1'. Then as a second menu, you have start_level='2'. Now, your second menu will show items based on what is selected in the first menu.
should be what you are looking for.

Re: Print out only submenu

Posted: Mon Feb 07, 2011 8:22 pm
by Dr.CSS
This is why I push so hard for everyone to read the default content...

http://multiintech.com/defaultcontent/i ... e=top_left