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.
Print out only submenu
Re: Print out only submenu
From the Menu Manager help
and
should be what you are looking for.
Code: Select all
(optional) number_of_levels="1" - This setting will only allow the menu to only display a certain number of levels deep.
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.
Re: Print out only submenu
This is why I push so hard for everyone to read the default content...
http://multiintech.com/defaultcontent/i ... e=top_left
http://multiintech.com/defaultcontent/i ... e=top_left