System:App:generateInterfaceMenu
From Aspen Documentation
Generates a basic navigation structure for your application using the installed modules list.
Since 1.0
Contents |
Arguments
string generateInterfaceMenu ([boolean $display_ul = true])
- display_ul
- Whether or not to print out the UL element wrapper
Notes
- This function will automatically assign a class of "at" on the
lielement if the user is at a page within the specific module. - You will need to manually input the logout link if using user authentication.
Examples
By default, the following statement would return an entire UL element:
<?php print $this->APP->generateInterfaceMenu(); ?>
Outputs:
<ul id="nav"> <li class="at"><a href="http://yourdomain.com/aspen/admin/index" title="Welcome" class="at">Welcome</a></li> <li><a href="http://yourdomain.com/aspen/admin/settings" title="Settings">Settings</a></li> <li><a href="http://yourdomain.com/aspen/admin/users" title="Users">Users</a></li> </ul>