You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/extras.md
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -17,3 +17,15 @@ Custom field handles on CP edit forms will be visible in the dev enviroment.
17
17
## Front-end edit entry Links
18
18
19
19
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
0 commit comments