Skip to main content

6. Menu

The structure used by the default BasicMenu codeunit, allowing the user to manage the contents of a menu.
Optional feature.

image.png

A menu entry is composed of 5 attributes.

Sort order
Controls the order of the components, when rendering the page.menu.

Parent elemententry

The menu entry that this entry recides under.

Title

The shown text on this menu entry. Either use a Data item, or a text field, to have full control.

UelUrl/Path
The url/path of the page, to redirect to. Can be external. Either use a subselect/value copy in combination with the title, or a text field, to have full control

Children
A list of menu entries below this one. If this page does have a parent, this field is hidden, because the codeunit doesn't support multiple levels of menus.

This entity is used by a codeunit named com.tsnocode.core.cms.BasicMenu to render a simple menu.
The codeunit is controlled via the System configuration that start with Cms.Menu..
The default configurations generate a bootstrap 4.6 navbar.