WebsiteBaker Community Forum
WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: Vlob on November 25, 2008, 11:38:34 AM
-
let me explain:
I have got a menu with submenu pages,
the submenu pages appear in another section of the site
I want the menu-parent name above the submenu list
something like <?php page_title('','[PAGE_TITLE]'); ?> does
is there a way to get the name of the 'menu-parent' automatically above the submenu?
(this should not be a link, just the name of the parent)
-
Show_menu2 is soooo powerfull: :-D
<?php
$parent = show_menu2(0, SM2_ROOT, SM2_ALL, SM2_ALL|SM2_CURRTREE|SM2_BUFFER,
'[if(id==parent || class==menu-expand){ [menu_title] }]','','','');
echo "<h2>".$parent."</h2>";
?>
This will show your parent menu name.
Ruud
-
Ah.. I hoped so
geweldig en bedankt!