I've build a theme which is currently using the primary_links and secondary_links menus. I need to create a third menu item, which I've done under the 'add menu' area in the admin.
I've called this third menu item 'submenu'.
In my page.tpl.php I have this line of code to use the menu:
print theme('links', $topmenu, array('class' => 'links', 'id' => 'subnavlist'))
It's the same code that came with Bluemarine for both primary and secondary links, just with $submenu instead.
This doesn't work, as the menu doesn't appear (I have 3 pages set with 'submenu' as their parent). Looking at the view source there is nothing in the HTML for the menu.
Do I need to define submenu in the template.php? If so, how?
Comments
No answer to this?!
This seems like a pretty simple thing to try and do, yet no answer in four days, and nothing found through hours of Internet searching! Surely someone has encounter this before?!
Any luck?
I'm having the same problem and feel like it must be something so simple that I'm overlooking. I've created my custom menu and added three items to it. Then I've put this in my page.tpl.php file:
print theme('links', $primary_links2, array('id' => 'mainnav2'))Won't appear. If I go to the blocks area in admin, I can move it to a region and it does appear that way... but the primary and secondary menus appear without having to move them to regions... not sure what step I'm leaving out.
Solution
Found a solution here: http://drupal.org/node/112735