Skip to content

Commit 78f4d5b

Browse files
committed
[#69] Update readme for disableEditButton
Ref: #70 (comment)
1 parent 8469890 commit 78f4d5b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/extras.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,15 @@ Custom field handles on CP edit forms will be visible in the dev enviroment.
1717
## Front-end edit entry Links
1818

1919
When visiting an element URL on the front-end, an edit entry link to edit that element in the CP will be present in the lower left hand corner. This will always be present in the dev environment regardless of logged-in state or permissions.
20+
21+
In order to prevent these links from being cached by Blitz (or simply to remove it from any site), `^v5.0.4` adds a boolean `disableEditButton` option to the module config which prevents the `Edit Entry` links from being output. The default value is `false` but can be changed in a project’s `config/viget.php` to `true` or `!App::devMode()`:
22+
23+
```php
24+
<?php
25+
26+
use craft\helpers\App;
27+
28+
return [
29+
'disableEditButton' => !App::devMode(), // default is false
30+
];
31+
```

0 commit comments

Comments
 (0)