HTML fonts
The structure and appearance of the menu can be defined using HTML. It is necessary that in the menu
configuration, the option "Create from HTML template" is defined as "Yes"
so that the HTML template is taked into account.
When the HTML template is used, the popup menu is not generated, but instead, the HTML is used to replace the
tags that define the position of each menu in the HTML. A tag corresponds to a keyword that is put in the HTML
and replaced, at time to show the menu, by a value defined according to the creation of the tag.
The possible tag types are:
- Link to a menu option: it serves to put a link as a text according to the configuration
in the menu tree. The tag structure is [[name]], where name is the name assigned to
the menu sheet in the tree. The same sheet name is put as a word to generate the link.
- Link URL: it serves to generate only the link URL corresponding to the menu sheet.
The tag structure is: [[name:url]], where name is the name assigned to the menu sheet
in the tree, and url is an unchanging word, it keeps in the same way and indicates that it only wants the URL,
not the full link. For example, if the tag [[Course topics:url]] is put, at time to see the menu
the tag will be replaced by the relative URL of the named sheet Course topics.
The URLs are created as "relative" to avoid problems with some filters in the Moodle HTML editor that replace the URLs
when they are not complete, and these URLs will not be complete until to generate the menu for the user.
Notes:
- If a tag does not write in the same way as it was put in the tree, including blank spaces, it will not be replaced and it will be shown as a text in the menu
- The double brackets [[ and ]] are required to indicate a tag to replace
- A same tag can be put several times in the same template