Editing
CMS Configuration
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Page headers=== ====Breadcrumbs==== ====Utility links==== *Global variable <code>$nav_menu</code> **Declared in <code>/_hostmgr/_config/config.php</code> **<code>nav_menu_class</code> defined in <code>[COMMON_CLASS_DIR]navmenu/nav_menu_class.php</code> *Create an new utility link with <syntaxhighlight lang="php"> $nav_menu->add_node($label, $url, $target, $onclick, $level, $dom_id, $attributes); </syntaxhighlight> :*<code>$label</code> Text label displayed for this item in the navigation menu. :*<code>$url</code> (Optional) The URL the menu item links to. :*<code>$target</code> (Optional) Menu item target. Allows for opening the URL in a new browser window. :*<code>$onclick</code> (Optional) JavaScript "onclick" code. Best to set a selector with <code>$dom_id</code> and set the handler with JQuery on page load. :*<code>$level</code> (Optional) Indentation level of the menu item. Defaults to 0. :*<code>$dom_id</code> (Optional) Sets the id attribute of the menu item element. Hook for selecting the element with JQuery. :*<code>$attributes</code> (Optional) Hook to set any additional attributes for the menu item element. This could be set to <code>"data-id=\"123\""</code> for example.
Summary:
Please note that all contributions to Littledamien Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Littledamien Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information