WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: Vlob on November 25, 2008, 11:38:34 AM

Title: is there a way to get the 'menu-parent' automatically above the submenu?
Post 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)


Title: Re: is there a way to get the 'menu-parent' automatically above the submenu?
Post by: Ruud on November 25, 2008, 12:26:13 PM
Show_menu2 is soooo powerfull:  :-D

Code: [Select]
<?php 
$parent 
show_menu2(0SM2_ROOTSM2_ALLSM2_ALL|SM2_CURRTREE|SM2_BUFFER,
    &
#39;[if(id==parent || class==menu-expand){ [menu_title] }]&#39;,&#39;&#39;,&#39;&#39;,&#39;&#39;); 
echo "<h2>".$parent."</h2>";
?>


This will show your parent menu name.

Ruud
Title: Re: is there a way to get the 'menu-parent' automatically above the submenu?
Post by: Vlob on November 25, 2008, 12:32:59 PM
Ah.. I hoped so


geweldig en bedankt!