Print out only submenu

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
pustofkj
Forum Members
Forum Members
Posts: 19
Joined: Fri Feb 04, 2011 1:57 pm

Print out only submenu

Post 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.
dropster
Forum Members
Forum Members
Posts: 57
Joined: Wed Oct 10, 2007 11:40 pm

Re: Print out only submenu

Post 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.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Print out only submenu

Post 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
Post Reply

Return to “Layout and Design (CSS & HTML)”