A navigation menu item is an entry in the left sidebar. UseDocumentation Index
Fetch the complete documentation index at: https://docs.twenty.com/llms.txt
Use this file to discover all available pages before exploring further.
defineNavigationMenuItem() to ship custom sidebar links — typically one per view you ship — or to point at external URLs.
src/navigation-menu-items/example-navigation-menu-item.ts
Pontos-chave
-
typedetermines what the menu item links to. Each type pairs with a specific identifier field:Tipo O que faz Required field NavigationMenuItemType.VIEWOpens a saved view viewUniversalIdentifierNavigationMenuItemType.LINKOpens an external URL linkNavigationMenuItemType.FOLDERGroups nested items under a label name(and child items reference the folder viafolderUniversalIdentifier)NavigationMenuItemType.OBJECTOpens an object’s default index page targetObjectUniversalIdentifierNavigationMenuItemType.PAGE_LAYOUTOpens a standalone page layout pageLayoutUniversalIdentifier -
positioncontrols ordering in the sidebar. -
iconandcolorare optional and customize how the entry looks. -
folderUniversalIdentifieris also available on any item to nest it inside aFOLDER-type parent.
Common pitfall: creating an object without an associated view + navigation menu item makes that object invisible to users. Unless it’s a technical/internal object, every custom object should have a default view and a sidebar entry pointing at it.