Issue Feature Closed

#95808In 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

S P 10/28/21, 07:56 updated 01/30/24, 08:27

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)

Reviews 1