WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: RedGnomos on January 29, 2008, 04:51:30 AM

Title: Menu Help
Post by: RedGnomos on January 29, 2008, 04:51:30 AM
Hi,

I am currently displaying my menu using the following code
Code: [Select]
<?php show_menu(10, -1false, &#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
Title: Re: Menu Help
Post by: ruebenwurzel 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(10, -1true, &#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

Title: Re: Menu Help
Post by: RedGnomos on January 29, 2008, 08:28:43 AM
Hi,

Thanks for the reply. I did try that however it doesn't work.
Title: Re: Menu Help
Post by: RedGnomos 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