Help
<menuitems>
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="string" type="Home|Course|Admin|Communicate|Top" text="string" url="URL" [target="_blank|_parent|_self|_top"] [features="string"] [icon="string"] [domainrights="number"] [domainroles="string"] [enrollmentrights="number"] [enrollmentroles="string"]>
[<menuitem>
Nested submenu item definitions that follow the same format.
</menuitem>
...]
</menuitem>
...
</menuitems>
ElementAttributeMeaning
menuitems / menuitemid 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".

type 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.

textThe 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.

urlThe 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.

targetOptional, 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.)

featuresOptional, 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.)

icon 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.

domainrightsThe decimal number that specifies all of the domain rights flags that a user must have to view the menu item.

domainrolesA 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.

enrollmentrights 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.

enrollmentroles 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.
See Also
Domain Customization