Feature #97563
openAdd rendering option to `select` fields to hide them if only 1 value selectable
0%
Description
This is about adding a TCA rendering option to select
fields that would hide the field from the editor if there is only 1 value available.
This allows decluttering the backend form by removing fields where the editor does not actually have a choice. This leads to better UX.
The immediate use case is if the Core wants to provide fields but not provide any options (except default) for it because it only becomes useful if an integrator adds functionality there.
There might also be other use cases for integrators to use this option. For example, when dynamically adding items through a userFunc
which could result in only 1 item.
Updated by Jonas Eberle over 2 years ago
- Related to Task #97562: Remove the example "Layout 1/2/3" entries from tt_content.layout / pages.layout added
Updated by Björn Jacob over 2 years ago
I would opt for making this configurable via PageTS. Especially for development purposes all fields should be visible. Otherwise debugging is quite difficult.
Updated by Jonas Eberle over 2 years ago
Thanks for the feedback. We also talked about it in our weekly Structured Content Initiative call.
Consider if it leads to problems if a field "disappears" like that.
Just some ideas:
Maybe it could depend on the Development mode.
It could also show as "disabled" only (not hidden). (Consider if this could be misinterpreted as "missing permissions" in that case)