Display Condition in TCA
We found the following issue while configuring the backend-editor:
The editor indirectly needs to edit multiple fields (e.g. ‚colPos‘ or ‚sys_language_uid‘) but they shouldn‘t be visible in the content element.
So we unlocked those fields in the Access-List and tried to hide the fields with the TCA-Display Condition „HIDE_FOR_NON_ADMINS“.
If we create a new record, the fields are hidden but when we save the record, the values are reset to default.
Steps to reproduce (Example with the field „colPos“):
- Unlock the field for the editor in the access-list
- hide the field in the TCA ‚displayCond‘ $GLOBALS['TCA']['tt_content']['columns']['colPos']['displayCond'] = 'HIDE_FOR_NON_ADMINS';
- Create a new Record and save it
The record is saved with the correct value in the colPos field
The record is saved with the default value