Installation
Choose your version
| FreeNav | Status | Craft CMS | PHP |
|---|---|---|---|
| 6.x | Beta | 6.0 or later | 8.5 or later |
| 5.x | Stable | 5.0 or later | 8.2 or later |
No dependencies beyond Craft itself.
Craft CMS 6 (Beta)
FreeNav 6 is a beta release, so ask Composer for it explicitly, then install it with Artisan:
composer require "justinholtweb/craft-free-nav:^6.0@beta"
php artisan craft:plugin:install free-nav
Test it on a copy of your site before relying on it in production. Once FreeNav 6.0.0 is released, the @beta flag is no longer needed.
Craft CMS 5
Require the plugin and install it with the Craft CLI. Composer picks FreeNav 5 for a Craft 5 project.
composer require justinholtweb/craft-free-nav
php craft plugin/install free-nav
On either version you can also go to Settings → Plugins in the Control Panel and click “Install” next to FreeNav.
What Gets Installed
FreeNav creates three database tables (freenav_menus, freenav_menu_sites, freenav_nodes) and registers the Node element type, the Menu field type, and the craft.freenav Twig variable. On Craft 6 templates also get a freenav global with the same methods.
Next steps
Create a menu under FreeNav → Menus → New menu, add nodes to it, and render it in a template. Usage walks through it.