Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The top navigation menu includes entries that are generated by default but you may want to include additional menu entries that are unique to your learning management system (LMS).

The Custom Menus feature of the Dual Code theme Menu allows you to create your own menu entries, specify their order, and specify which users will be able to see the menu entries based on their permissions.

Background

The Custom menu items text box allows you to add new menu entries; one menu entry per line. To access the custom menu:

  1. Go to Administration | Site Administration | Appearance | Themes | Dual Code | Custom Menu.

Structure of the Menu Entries

Each line consists of required and optional parameters separated by the pipe “|” character. The parameters include:

...

In this example, a menu entry name FAQ will display HTML page called “our-lms-faq” when the site is viewed in English and the user is logged in.

Restricting Access to a Menu


The Custom menus can be created so that they are only accessible to a specific group of users such as registered users. You add this parameter as the last option on a menu entry to restrict access to specific user groups. Some common access restrictions are:

...


For an exhaustive list of permissions, see https://docs.moodle.org/25/en/Category:Capabilities.

Creating Submenus

Submenu entries are created by putting a dash “-“ at the start of the line. For example:

...