Installation & Requirements
Installing Navigation (trk/processwire-navigation) automatically installs its two companion modules: MarkupNavigation (HTML and JSON-LD renderer) and ProcessNavigation (the Setup -> Navigation React tree workspace), plus the navigation and navigation-admin permissions.
Requirements
Section titled “Requirements”| Component | Version |
|---|---|
| PHP | 8.4+ |
| ProcessWire | 3.0.271+ |
| Required Modules | Inertia, React, Entries |
Install Navigation
Section titled “Install Navigation”-
Require the package with Composer:
Terminal window composer require trk/processwire-navigation -
Refresh modules and install
Navigation:Terminal window php vendor/bin/wire module:refresh --jsonphp vendor/bin/wire module:install --name=Navigation --json -
Scaffold your first YAML menu definition in
site/navigation/main.yaml:Terminal window php vendor/bin/wire make:navigation main --title="Main Header Navigation" --max-depth=3 --icon=menu-2 --json -
Verify registered menus:
Terminal window php vendor/bin/wire navigation:list --json
- Log in as a superuser and navigate to Modules -> New.
- Use Add Module from Directory (enter
Navigation), Add Module from URL, or Add Module from Upload (ZIP archive). - Click Modules -> Refresh, locate Navigation under the Site tab, and click Install. Both
MarkupNavigationandProcessNavigationare installed automatically. - Open Setup -> Navigation to create your first menu or import a JSON bundle.
- Download and extract the release archive into
site/modules/Navigation/. - Open Modules -> Refresh in the ProcessWire Admin (or run
php vendor/bin/wire module:refresh). - Click Install next to Navigation under Modules -> Site.