Upgrading & Uninstalling
Before uninstalling Navigation, export your menus and hierarchical node trees to JSON and remove $navigation->render() calls from your frontend templates.
Pre-Uninstall Checklist
Section titled “Pre-Uninstall Checklist”-
Export all menus and nodes to a portable JSON archive:
Terminal window php vendor/bin/wire navigation:export site/assets/backups/navigation-final-backup.json --json -
Remove template references to
$navigation->render(),$navigation->tree(),$navigation->renderBreadcrumbs(),$navigation->renderJsonLd(), and any customNodeTargetResolverInterfaceregistrations. -
Uninstall companions first, then
Navigation:Terminal window php vendor/bin/wire module:uninstall ProcessNavigation --jsonphp vendor/bin/wire module:uninstall MarkupNavigation --jsonphp vendor/bin/wire module:uninstall Navigation --json
What Navigation::___uninstall() Removes vs. Preserves
Section titled “What Navigation::___uninstall() Removes vs. Preserves”| Artifact | Action on Uninstall | Details |
|---|---|---|
Database Menus & Nodes (navigation-menus, navigation-nodes, navigation-node-*) |
Purged | Deleted cleanly from Entries storage and unregistered from the schema registry. |
Permissions (navigation, navigation-admin) |
Removed | Deleted from ProcessWire permissions. |
Admin Page (Setup -> Navigation) |
Removed | Removed when ProcessNavigation uninstalls. |
WireCache & Hooks |
Cleared | Clears the navigation cache namespace, PageSyncManager hooks, and pull-discovery cache. |
YAML Menu Files (site/navigation/*.yaml) |
Preserved | Your version-controlled files on disk are never deleted. |
Upgrading Navigation
Section titled “Upgrading Navigation”Always take a database backup (php vendor/bin/wire db:backup) before upgrading in production.
-
Update the package and refresh modules so ProcessWire runs
___upgrade()automatically:Terminal window composer update trk/processwire-navigationphp vendor/bin/wire module:refresh
- Open Setup -> Upgrades (with
ProcessWireUpgrade) or navigate to Modules -> New and use Add Module from Directory (Navigation), Add Module from URL, or Add Module from Upload (ZIP archive) to replace the module files. - Click Modules -> Refresh so ProcessWire detects the new version and executes
___upgrade()automatically.
- Replace
site/modules/Navigation/with the new release directory. - Open Modules -> Refresh in the ProcessWire Admin (or run
php vendor/bin/wire module:refresh) so___upgrade()executes cleanly.