WebsiteBaker Support (2.8.x) > Templates, Menus & Design
is there a way to get the 'menu-parent' automatically above the submenu?
(1/1)
Vlob:
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)
Ruud:
Show_menu2 is soooo powerfull: :-D
--- Code: ---<?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>";
?>
--- End code ---
This will show your parent menu name.
Ruud
Vlob:
Ah.. I hoped so
geweldig en bedankt!
Navigation
[0] Message Index
Go to full version