Menu
The application server generates a navigation menu automatically from the pages in the pages folder.
A page is added to the menu by including a # entry in its header section.
The menu entry format is:
#<sequence> <label>
##<svg tag>
- The sequence number controls the order of the entry in the menu. Lower numbers appear first.
- The label is the display text for the menu entry.
- The optional
##line on the following line sets a custom SVG icon for the entry. The value should be a full<svg ...>...</svg>tag.
If no ## icon line is provided, the entry uses the default icon configured by pages.defaultMenuIcon. The default is a simple info icon. You can replace it application-wide in the configuration file, or override it per page with ##.
Pages without a # entry do not appear in the menu but are still accessible by URL.
The menu is rendered by the header.html system file. By default, menu entries the current user is not authorized to view are hidden - each entry is evaluated against its page's GET authorization rules, consistent with the access enforced when the page is actually requested. This filtering is controlled by pages.hideUnauthorizedMenuItems (default true); set it to false to always show every entry. It has no effect when auth.type is none.