Welcome, Guest. Please login or register.
Did you miss your activation email?
May 24, 2012, 08:06:57 PM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155469 Posts in 21707 Topics by 7732 Members
Latest Member: DarrellDD
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: is there a way to get the 'menu-parent' automatically above the submenu?  (Read 621 times)
Aaaarco

Offline Offline

Posts: 25


« 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)


Logged
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2295



WWW
« Reply #1 on: November 25, 2008, 12:26:13 PM »

Show_menu2 is soooo powerfull:  grin

Code:
<?php 
$parent 
show_menu2(0SM2_ROOTSM2_ALLSM2_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
Logged

Professional WebsiteBaker Solutions
Aaaarco

Offline Offline

Posts: 25


« Reply #2 on: November 25, 2008, 12:32:59 PM »

Ah.. I hoped so


geweldig en bedankt!
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!