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.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


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 »
  • Menu Help
  • Print
Pages: [1]   Go Down

Author Topic: Menu Help  (Read 9426 times)

RedGnomos

  • Guest
Menu Help
« on: January 29, 2008, 04:51:30 AM »
Hi,

I am currently displaying my menu using the following code
Code: [Select]
<?php show_menu(1, 0, -1, false, &#39;<tr><td bgcolor="#D9E4F4">[a][menu_title][/a]</td></tr>&#39;, &#39;&#39;, &#39;&#39;, &#39;&#39;, &#39;class="menu"&#39;, &#39;class="menu"&#39;, 0); ?>
It displays all the menu options however I would like to only display the parent pages and when the user clicks on a specific parent page that has children pages, the children menu options display? How do I achieve that?

I tried the options as found on http://help.WebsiteBaker.org/pages/en/advanced-docu/designer-guide/multiple-menus.php#anker3 however it doesn't seem to work
« Last Edit: January 29, 2008, 06:47:38 AM by ruebenwurzel »
Logged

Offline ruebenwurzel

  • Betatester
  • **
  • Posts: 8544
  • Gender: Male
  • Keep on Rockin
    • Familie Gallas Online
Re: Menu Help
« Reply #1 on: January 29, 2008, 06:51:24 AM »
Hello,

so if you read the help page wy not simply do what ther is written. All varaibles are explained. Description of Position 4 is:

Quote
Specifies, whether the menu tree shall be expandable/collapsible (if set to 'true') or complete (all pages being displayed) if set to 'false'

so the following should do th trick:

Code: [Select]
<?php show_menu(1, 0, -1, true, &#39;<tr><td bgcolor="#D9E4F4">[a][menu_title][/a]</td></tr>&#39;, &#39;&#39;, &#39;&#39;, &#39;&#39;, &#39;class="menu"&#39;, &#39;class="menu"&#39;, 0); ?>
Matthias

Logged

RedGnomos

  • Guest
Re: Menu Help
« Reply #2 on: January 29, 2008, 08:28:43 AM »
Hi,

Thanks for the reply. I did try that however it doesn't work.
Logged

RedGnomos

  • Guest
Re: Menu Help
« Reply #3 on: February 01, 2008, 02:46:40 AM »
I did manage to get it working. I think it might have been a caching issue however I was wondering how I could control the HTML classes for the parent pages and child pages independently so that I have having it looking such as  http://www.meadhra.com/cnet/041208/indentednavlist.html. I am trying to use the same CSS definitions as http://articles.techrepublic.com.com/5100-3513-5810696.html
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Menu Help
 

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