The <menuitems> element adds additional menu items to the application menus. Adding menu items to these menus will not cause an otherwise hidden menu to become visible. For example, the Gradebook menu is visible only if the end-user has grading privileges in at least one section. Adding a <menuitem> to the Gradebook menu does not cause the Gradebook menu to be visible for students.
|menuitems / menuitem||id||
Id to use to generate the HTML ID for the menu item.
This value should be unique.
If not supplied, a slugified version of the text attribute will be used.
For example, "My custom menu" would change to "my-custom-menu".
Identifies the menu to which the item will be added.
Home, Course, and Admin items will display on the menu bar of those primary menus.
Communicate items will display in the drop down menu displayed on the Home and Course menus.
Top items will display a new top level menu.
|text||The text to display for a menu item. Specify a hyphen character "-" to add a separator bar to the menu. (Hyphen is only valid for Communicate type items.|
|url||The URL to launch for this menu item. Url is ignored if the menu item is a separator or if it is not a top level menu and contains submenus.|
|target||Optional, standard HTML target attribute that specifies where to open url. It omitted, the default value is _self. (See HTML window.open() method for more details.)|
|features||Optional, features of the newly opened browser window features. Possible values and behaviors are defined in the standard HTML window.open() method. (See HTML window.open() method for more details.)|
Optional icon for the menu item.
In the default frame, this is only used on top level and dropdown menu items.
Custom top level icons should be 70x40 for optimal rendering.
|domainrights||The decimal number that specifies all of the domain rights flags that a user must have to view the menu item.|
|domainroles||A bar-separated list of domain roles that may see the menu item. If a user has one of the listed roles, the menu is visible.|
The decimal number that specifies all of the enrollment rights flags that a user must have to view the menu item.
These rights only get applied to submenu items when there is a valid current enrollment, such as, components displayed under the Courses menu.
A bar-separated list of enrollment roles that may see the menu item.
These roles only get applied submenu items when there is a valid current enrollment, such as, components displayed under the Courses menu.
If a user has one of the listed roles, the menu is visible.