WebsiteBaker Support (2.8.x) > Templates, Menus & Design

Menu Help

(1/1)

RedGnomos:
Hi,

I am currently displaying my menu using the following code

--- Code: ---<?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); ?>
--- End code ---

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

ruebenwurzel:
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'

--- End quote ---

so the following should do th trick:


--- Code: ---<?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); ?>
--- End code ---

Matthias

RedGnomos:
Hi,

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

RedGnomos:
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

Navigation

[0] Message Index

Go to full version