WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.8 is now available!


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • is there a way to get the 'menu-parent' automatically above the submenu?
  • Print
Pages: [1]   Go Down

Author Topic: is there a way to get the 'menu-parent' automatically above the submenu?  (Read 4130 times)

Offline Vlob

  • Posts: 106
is there a way to get the 'menu-parent' automatically above the submenu?
« 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

Offline Ruud

  • Posts: 3671
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: is there a way to get the 'menu-parent' automatically above the submenu?
« Reply #1 on: November 25, 2008, 12:26:13 PM »
Show_menu2 is soooo powerfull:  :-D

Code: [Select]
<?php 
$parent 
= show_menu2(0, SM2_ROOT, SM2_ALL, SM2_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
Logged
Dev4me - WebsiteBaker modules - WBhelp.org

Offline Vlob

  • Posts: 106
Re: is there a way to get the 'menu-parent' automatically above the submenu?
« Reply #2 on: November 25, 2008, 12:32:59 PM »
Ah.. I hoped so


geweldig en bedankt!
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • is there a way to get the 'menu-parent' automatically above the submenu?
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2