getMenuStructureList
Parameters
|
Argument
|
Default
|
Description
|
| $parent_id |
0 |
What menu item is the parent level? 0 will build all items |
| $num_levels |
0 |
What levels should the menu drill down to? 0 will build all levels |
| $section_id |
Main |
What menu section will we build items from? |
| $cLanguageID |
DEFAULT LANGUAGE |
What language of menu items shall we build? |
| $recurse_count |
0 |
This prevents an infinite recursive loop |
| $tabs |
no value |
For formatting HTML Source |
| $special_flag |
false |
Define if menu is used in a special case |
| $cmID |
no value |
Current Menu Item ID |
| $showAdminAddMenuItem |
true |
Should Admins be able to edit this menu? |
| $ordinal |
no value |
Define the menu’s ordinal |
| $maxlevel1menuitems |
100 |
Maximum top level menu items to be displayed |
Tips
- The second parameter, $num_levels, specifies how many levels the menu will drop-down to (or lead to, depending on how your menu is styled).
- The fourth parameter, $cLanguageID, can be dynamic - you could use a value of “$_SESSION['user_lang']”
The menu output is structured like so:
<ul>
<li class="top_parent_1_on level1_on has_child">
<div class="left_end">
</div>
<a href="home.html" accesskey="H" title="Access Key = H"> Home </a>
<ul>
<li>
<div class="left_end">
</div>
<a href="latest-news.html"> Latest News </a>
<div class="right_end">
</div>
</li>
<li>
<div class="left_end">
</div>
<a href="sitemap.html"> Sitemap </a>
<div class="right_end">
</div>
</li>
<li>
<div class="left_end">
</div>
<a href="accessibility.html"> Accessibility </a>
<div class="right_end">
</div>
</li>
</ul>
<div class="right_end">
</div>
</li>
</ul>
Top of Page