# 4. Menu

The Basic Menu codeunit uses the structure defined in the "Menu" entity.

[![image.png](https://docs.tsnocode.com/uploads/images/gallery/2026-10/scaled-1680-/PZ9zhlv55SModdFn-image.png)](https://docs.tsnocode.com/uploads/images/gallery/2026-10/PZ9zhlv55SModdFn-image.png)

A menu item is composed of 5 attributes.

**Sort order**  
Used to control the order of the menu.

**Parent element**  
If this element should be nested under another menu item.

**Title**  
The title shown in the menu.  
Here it is a reference to a page.

**Url**  
The url to redirect to, when a user clicks the menu item.  
Here it is a copy of the path from the referenced page.

**Sub elements**  
If this menu item doesn't have a parent element, this element is available.  
Shows the list of elements to show in a dropdown un this menu element.

[![image.png](https://docs.tsnocode.com/uploads/images/gallery/2026-10/scaled-1680-/Qjn2kuFI9E0FLqN8-image.png)](https://docs.tsnocode.com/uploads/images/gallery/2026-10/Qjn2kuFI9E0FLqN8-image.png)

Updating a menu entry will not clear the cached output of the menu.