navigation
Manage navigation menus with a drag-and-drop UI in Payload CMS.
Installation
pnpm add @spon/payload-navigation About
This plugin allows users to create and manage navigation menus directly within the Payload CMS admin interface. It features a drag-and-drop menu builder that supports various link types, including URLs, internal page references, custom links, and passive items for parent labels. The menu builder can handle custom nesting depths and automatically resolves internal page URLs. When a menu item is deleted, the system ensures that there are no references to deleted pages, maintaining consistency. Every time a change is made, the plugin updates the navigation document with a clean JSON structure, making it easy for front-end integration. Users can customize settings such as the maximum depth of the menu and manage access control for different roles. The plugin integrates with Payload's collections system, registering two main collections: `navigation` for the overall menu structure and `menu_item` for individual items. Extensions to these collections can be achieved using standard Payload collection configuration options to enhance functionality.
Package info
- Package name
@spon/payload-navigation- Latest version
0.4.1- Unpacked size
- 176 kB
- License
- MIT
- Weekly downloads
- 3
- Last publish
- May 29, 2026