From f892c0450e3493bb7eedf46c7fe64d53fde4545a Mon Sep 17 00:00:00 2001 From: Aaron Carlino Date: Wed, 10 Jul 2019 13:18:47 +1200 Subject: [PATCH] README updates --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 1ecc785..b3d61ba 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,18 @@ The navigator is auto-injected into your template, and no code changes are neede If your website uses caching, make sure BetterNavigator's output is excluded. +## Disabling the navigator + +You can disable the navigator using your own custom logic by defining a `showBetterNavigator(): bool` +method in any controller with the extension applied. + +```php +public function showBetterNavigator(): bool +{ + // A user-defined setting + return $this->ShowDebugTools; +} +``` **Access developer tools on a live website** You can mark certain CMS users as developers in your site's config, so they can access developer tools when logged in. Example YAML: