Skip to content

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.

Component Version
PHP 8.4+
ProcessWire 3.0.271+
Required Modules Inertia, React, Entries
  1. Require the package with Composer:

    Terminal window
    composer require trk/processwire-navigation
  2. Refresh modules and install Navigation:

    Terminal window
    php vendor/bin/wire module:refresh --json
    php vendor/bin/wire module:install --name=Navigation --json
  3. 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
  4. Verify registered menus:

    Terminal window
    php vendor/bin/wire navigation:list --json

Next steps