The top navigation menu can be customized. Once customized, the default menu installed with your system will no longer be applicable.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, :
- Go to Site Administration > Appearance > Themes > English (or French) > Settings
- Go to the "Other" tab
- Define your own custom menu (see the "Structure of the Menu Entries" below).
- Click on the "Save changes" button at the bottom of the page
...
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
It is possible to use tokens, also known as placeholders, in the menu. This is generally used to display dynamic data. Please see the /wiki/spaces/releases/pages/34996624 article for more information.
Restricting Access to a Menu
...
A common requirement is to show different menus to authenticated users and non-authenticated users. To facilitate this requirement, you should be aware of the following common capabilities:
User Group | Menu OptionCapability |
---|---|
Logged in users only | local/dualcode:authenticated |
Users with supervisor capabilities (e.g. VPs, directors, supervisors) | moodle/site:viewreports |
Everyone no (including users who are not yet logged in) | No option is required |
Note:
- When a custom menu item is associated with local/dualcode:authenticated, users will need to log into the system to see it.
- Any capability in the system can be used to restrict access to a menu item as long as it's assigned to a user in the context of the system. For an exhaustive list of capabilities, see https://docs.moodle.org/39/en/Category:Capabilities
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
...
to show a menu item to everyone |
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.
...