Feature #69766
closedItems of TCA select "special" unsorted
0%
Description
Filling an TCA select
field with items via special
yields an unordered list of items, e.g. based on TCA for tables
. The longer these lists, the harder it gets to find the desired item.
These items should be sorted, locale aware if possible.
Updated by Mathias Schreiber almost 9 years ago
- Status changed from New to Needs Feedback
- Assignee set to Mathias Schreiber
is this fixed with the new FormEngine?
Updated by Benjamin Kott almost 9 years ago
- Category changed from Backend User Interface to FormEngine aka TCEforms
Updated by Mathias Schreiber over 8 years ago
- Tracker changed from Bug to Feature
- Target version changed from 7 LTS to Candidate for Major Version
Updated by Alexander Opitz over 8 years ago
- Status changed from Needs Feedback to New
- Assignee deleted (
Mathias Schreiber)
Updated by Oliver Bartsch about 3 years ago
- Status changed from New to Needs Feedback
Hi, just came across this one.
Is this still relevant, since special
is deprecated in v11 (see: #93837)?
Updated by Mathias Brodala about 3 years ago
Since I don't see any sorting-related code in the mentioned switch to itemsProcFunc
I'd say yes, this is still relevant.
Updated by Christian Kuhn over 2 years ago
- Status changed from Needs Feedback to New
Updated by Oliver Bartsch 9 months ago
- Status changed from New to Needs Feedback
Hi, I just checked this again and tested the https://docs.typo3.org/m/typo3/reference-tca/main/en-us/ColumnsConfig/Type/Select/Properties/SortItems.html option. Will this resolve you issue? Example configuration could be:
'config' => [ 'type' => 'select', 'renderType' => 'selectSingle', 'itemsProcFunc' => \Vendor\Ext\ItemsProcFunc::class . '->getItems', 'sortItems' => [ 'label' => 'asc' ], ],
Updated by Mathias Brodala 9 months ago
- Related to Feature #91008: Add grouping and sorting for TCA select items added
Updated by Mathias Brodala 9 months ago
- Status changed from Needs Feedback to Resolved
Yep, just tried this on be_groups.tables_select
and the items from the itemsProcFunc
there where sorted by label as expected.
So this was solved with #91008.