Project

General

Profile

Actions

Feature #69766

closed

Items of TCA select "special" unsorted

Added by Mathias Brodala about 9 years ago. Updated 12 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Start date:
2015-09-13
Due date:
% Done:

0%

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

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.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #91008: Add grouping and sorting for TCA select itemsClosedBenni Mack2020-04-12

Actions
Actions #1

Updated by Mathias Schreiber about 9 years ago

  • Status changed from New to Needs Feedback
  • Assignee set to Mathias Schreiber

is this fixed with the new FormEngine?

Actions #2

Updated by Benjamin Kott about 9 years ago

  • Category changed from Backend User Interface to FormEngine aka TCEforms
Actions #3

Updated by Mathias Schreiber almost 9 years ago

  • Tracker changed from Bug to Feature
  • Target version changed from 7 LTS to Candidate for Major Version
Actions #4

Updated by Alexander Opitz over 8 years ago

  • Status changed from Needs Feedback to New
  • Assignee deleted (Mathias Schreiber)
Actions #5

Updated by Oliver Bartsch over 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)?

Actions #6

Updated by Mathias Brodala over 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.

Actions #7

Updated by Christian Kuhn almost 3 years ago

  • Status changed from Needs Feedback to New
Actions #8

Updated by Oliver Bartsch 12 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'
    ],
],
Actions #9

Updated by Mathias Brodala 12 months ago

  • Related to Feature #91008: Add grouping and sorting for TCA select items added
Actions #10

Updated by Mathias Brodala 12 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.

Actions #11

Updated by Oliver Bartsch 12 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF