Hello,

I am trying to get more than just two menus on the site.

Where I am now is I have added a new region to my template.php file. I can output the content, but it has titles and is styled wrong. What I need to do is theme a third menu to just output a line of links.

Any help would greatly be appreciated.

Thanks,

Brett

Comments

iwankgb’s picture

enable block generated for this menu

Wilcox’s picture

I have output the block. It is just styled wrong.

Wilcox’s picture

Anyone else?

ericwagner’s picture

Put this somewhere in themes/[yourtheme]/page.tpl.php (or wherever you want the menu.) It will work in a block as well.

<?php
$start_level = 1;
$menu_pid = 1;
$altmenu = menu_primary_links($start_level, $menu_pid); 
print theme('links', $altmenu)
?>

You will need to change menu_pid to your menu's pid (Go to administer/menus and roll your mouse over the "edit" link of the menu you want to display and you will see the pid.) Also, you will usually start at start_level 1.