Project

General

Profile

Actions

Feature #95808

closed

In 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

Added by Stefan P over 2 years ago. Updated 4 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2021-10-28
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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)

Actions

Also available in: Atom PDF