- Issue created by @SirClickALot
- 🇩🇪Germany a.dmitriiev
In version 1.x there is no way to control in UI for what view displays the frontend editing is shown and for what it is not. You can only do it with a hook, like it is described here https://www.drupal.org/project/frontend_editing/issues/3428005#comment-1... 💬 Hiding the Front End Editing containers on particular blocks in v1.60x Fixed . If your widget uses special view mode for the preview you can exclude it in the same hook as for ptoc view mode.
If not, in the same hook you can check whether the page has admin context or not with condition like:
function YOUR_MODULE_fe_allowed_bundles_alter(array &$bundles, array $context) { if (\Drupal::service('router.admin_context')->isAdminRoute()) { unset($bundles[$key]); } }
- Merge request !76Issue #3452176: Front End Editing in the backend? → (Merged) created by a.dmitriiev
-
a.dmitriiev →
committed fc90e0e9 on 1.x
Issue #3452176: Front End Editing in the backend?
-
a.dmitriiev →
committed fc90e0e9 on 1.x
- Status changed to Fixed
5 months ago 1:04pm 12 July 2024 - 🇩🇪Germany a.dmitriiev
Frontend editing in version 1.x should not work anymore on pages with admin context
Automatically closed - issue fixed for 2 weeks with no activity.