# Navigation
Menu management plugin by Verbb. Create and manage navigation menus with drag-and-drop, nested structures, custom fields on nodes, multi-site support, and a rich Twig rendering API. The standard navigation solution for Craft CMS — 20,000+ active installs.
`verbb/navigation` — $19
## Documentation
- Docs: https://verbb.io/craft-plugins/navigation/docs
- Rendering: https://verbb.io/craft-plugins/navigation/docs/template-guides/rendering-nodes
- Custom fields: https://verbb.io/craft-plugins/navigation/docs/get-started/custom-fields
- GitHub: https://github.com/verbb/navigation
When unsure about a Navigation feature, `WebFetch` the docs.
## Common Pitfalls
- Querying nodes without `.all()` or `.one()` — `craft.navigation.nodes()` returns an element query, not results. Always call `.all()` to execute it.
- Not using `.level()` for flat menus — without it, nested child nodes are included. Use `.level(1)` for top-level only.
- Forgetting `.eagerly()` on node element fields — if nodes have custom relation fields, eager-load them to avoid N+1 queries.
- Rendering with `craft.navigation.render()` then fighting the HTML — the render function outputs complete `
` markup. If you need custom HTML, query nodes and build your own markup instead.
- Not handling external URLs vs entry-linked nodes — some nodes link to entries (have an element), others are manual URLs. Template code must handle both.
- Caching navigation without invalidation — navigation rarely changes, but when it does, cached markup is stale. Use `{% cache %}` with a key, or use Blitz which auto-invalidates.
- Running below 4.0.7 — 4.0.4 closed an information-disclosure advisory, 4.0.5 stopped legacy `{siteUrl}` tokens and invalid author-entered URL templates from erroring on the front end, and 4.0.7 hides menu settings in the builder when `allowAdminChanges` is off (before that they stayed editable on production).
## Twig API
### Quick Render (Default Markup)
```twig
{{ craft.navigation.render('mainNav') }}
```
Outputs a complete `