Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 06:26:47 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155556 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Menu Help  (Read 550 times)
RedGnomos

Offline Offline

Posts: 65


« on: January 29, 2008, 04:51:30 AM »

Hi,

I am currently displaying my menu using the following code
Code:
<?php show_menu(10, -1false'<tr><td bgcolor="#D9E4F4">[a][menu_title][/a]</td></tr>''''''''class="menu"''class="menu"'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
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7973



WWW
« 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:
<?php show_menu(10, -1true'<tr><td bgcolor="#D9E4F4">[a][menu_title][/a]</td></tr>''''''''class="menu"''class="menu"'0); ?>

Matthias

Logged
RedGnomos

Offline Offline

Posts: 65


« 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

Offline Offline

Posts: 65


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