Feature #95808
closedIn select fields using a foreign_table it should be possible to define a DB field that is used for assigning a group defined in itemGroups
100%
Description
The itemGroups feature for TCA select fields is great. However, it is currently not possible to define a group to an item when using a foreign_table
.
It should be possible to configure a field of the foreign_table
whose value is stored in the group information of the item, to make groupItems work for database-supported select fields.
Example 'foreign_table_group' => 'my_group_field'
. All items fetched by the TcaSelectItems
form data provider would fetch this field and store it at position 4 (index 3) of the item array.
(if this field contains dynamic values it's still and already possible to add a custom form data provider fetching and adding these dynamic groups -only to use these dynamic groups for DB-fetched items is not possible, which is the feature request here)