Project

General

Profile

Actions

Feature #82031

closed

TCA: provide option to populate filter list in multiSelectFilterItems by user function

Added by Michael Stopp over 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2017-08-03
Due date:
% Done:

0%

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

Description

It would be great, if the filter list of the parameter multiSelectFilterItems for renderType selectMultipleSideBySide could be populated by a user function, similar to itemsProcFunc.

The possibilities to structure the right hand side of a selectMultipleSideBySide are currently rather limited. Used in conjunction with e.g. label_userFunc or an itemsProcFunc, such a dynamic filter list could simplify the handling of long lists of items significantly.

Actions #1

Updated by Mathias Schreiber over 7 years ago

That would be the purpose of a Dataprovider.
See https://docs.typo3.org/typo3cms/CoreApiReference/ApiOverview/FormEngine/DataCompiling/Index.html

Does this help?

Actions #2

Updated by Mathias Schreiber over 7 years ago

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

Updated by Michael Stopp over 7 years ago

Thanks for that. You're probably right. I had a glance at the documentation and tried to wrap my head around this. It seems like a very powerful mechanism, but I must admit that I'm fairly new to the concepts described there. I still struggle a bit with how you'd find out, where exactly to locate your own provider and what data formats are required etc. But I didn't have time yet to really look into that.

Actions #4

Updated by Alexander Opitz about 7 years ago

So we can close this issue?

Actions #5

Updated by Michael Stopp about 7 years ago

Yes

Actions #6

Updated by Alexander Opitz about 7 years ago

  • Status changed from Needs Feedback to Closed
  • Assignee deleted (Mathias Schreiber)

Thanks for feedback

Actions #7

Updated by Gone With the Wind over 6 years ago

Why was this issue closed? There is no solution, except Mathias' link. If that is the way to go, it should go into the documentation to this place:
https://docs.typo3.org/typo3cms/TCAReference/ColumnsConfig/Type/Select.html#multiselectfilteritems
with a good example.
Please re-open this issue - thank you!

Actions #8

Updated by Michael Stopp over 6 years ago

Even though I agreed to close the issue, I would definitely support Robert's request.

I think without prior knowledge about the FormEngine and its data compilation process, no average developer will know about this option just from consulting the TCA reference.
And a good example is always helpful. :-)

Actions #9

Updated by Sybille Peters over 6 years ago

I created a github issue for documenting this in the TCA reference. If you want to get notified if progress is made in this area (e.g. Pull Request submitted), you can Subscribe the github issue.

Actions

Also available in: Atom PDF