#111717Changing default value for contextualRecordEdit does not work
Description
We want to disable the Context Panel in TYPO3. To do this, we changed the default value for the setting:
TCA/Overrides/be_users.php:
$GLOBALS['TCA']['be_users']['columns']['user_settings']['columns']['contextualRecordEdit']['config']['default'] = 0;
This works fine when a user visits their user settings and saves them. But when a user has not saved their settings, the JavaScript assumes the default value is 1, even though it was changed to 0:
https://github.com/TYPO3/typo3/blob/main/Build/Sources/TypeScript/backend/element/contextual-record-edit-trigger.ts#L145-L151
*Why we want to disable the Panel:*
Our editors complained that some common workflows do not work with it or require more clicks.
Here are some pain points:
1. It’s not possible to change to another language version of the content. It’s a common task to edit the default language and then switch to the translations.
2. The element ID is not directly visible. Our editors provide us with the ID of an element if something does not work correctly.
3. It’s not possible to view the content in the frontend. The “View”-Button is not available and editing the button bar is not possible: https://forge.typo3.org/issues/110648
4. “Save & Close” is not possible with one click. Starting with TYPO3 v7 the “Save & Close” button was removed. That meant more clicks for editors. It’s possible to just click the “Close” button and then confirm the Dialog. But that’s unintuitive and takes more clicks. We modifed the default buttons to always include the “Save & Close” button. But that’s not possible for the default Context-Panel
5. Issues like https://forge.typo3.org/issues/110141 were preventing working with records
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Fix this issue
Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch
- Commit message
-
[BUGFIX] Changing default value for contextualRecordEdit does not work Resolves: #111717 Releases: main