mirror of
https://github.com/jonom/silverstripe-betternavigator.git
synced 2024-10-22 14:05:51 +02:00
README updates
This commit is contained in:
parent
8ff71fdbfb
commit
f892c0450e
12
README.md
12
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:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user