Versions Compared

Key

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

The top navigation menu can be customized. It's very important to understand however that once you customize it, any further modifications that Dual Code may make to the menu will no longer apply to your system. In other words, if Dual Code releases a new report for Supervisors and adds it to the "My Team" section of the top menu, this link will appear for learning environment that use the default menu, but it will not appear automatically if you're customized the menu

Step-by-step Guide

To customize the menu:

  1. Go to Site Administration > Appearance > Themes > English (or French) > Settings
  2. Go to the "Other" tab
  3. Define your own custom menu (see the "Structure of the Menu Entries" below).
  4. Click on the "Save changes" button at the bottom of the page
Excerpt

Structure of the Menu Entries

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

  • The menu text
  • A link URL (optional)
  • A tooltip title (optional)
  • A language code (en or fr_ca) or comma-separated list of both codes for displaying the menu entry to users of the specified language only (optional)
  • A capability or comma-separated list of capabilities for displaying the menu entry to users with the specified system capability only (optional).

Following is an example of a menu entry with all available options.

FAQ|/our-lms-faq |FAQ|en|local/dualcode:authenticated

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

Creating Submenus

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

FAQ
-Standard Topics|/standard_topics
-Special Topics|/special_topics


In this case, FAQ would be the main menu entry and “Standard Topics” and “Special Topics” would appear in the drop-down menu when you click FAQ. 

...

Leveraging Tokens in Menus

...

Restricting Access to a Menu

Custom menus items will be visible to all users, including users who haven't logged in, unless you restrict access to them by specifying required capabilities.

...

User Group

Capability

Everyone (including users who are not yet logged in)

No option is required to show a menu item to everyone

All logged in users

local/dualcode:authenticated

System Administrators

local/serverhealth:view

Supervisors & System Administrators

moodle/site:viewreports


Default Menu

The following is the default menu installed on your system as a reference. Note that this menu may vary depending on your version of the software.

...