Project

General

Profile

Actions

Feature #101899

open

allow Itemsfunctions for ValuePicker in TCA and FlexForms

Added by Dieter Porth 11 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2023-09-12
Due date:
% Done:

0%

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

Description

In order to design the value picker dynamically, I use the following code in the TCA.


   'valuePicker' => [
       'mode' => 'append',
       'items' => \MyVendor\MyExtension\Domain\Repository\RepositoryForTca::getValuepickerItemsFromTable('tx_mytable'),
   ], 

Of course this doesn't work in Flexforms. It would be desirable to have a parameter 'itemsProcFunc', similar to the type ' select' [[https://docs.typo3.org/m/typo3/reference-tca/9.5/en-us/ColumnsConfig/Type/Select.html#:~:text=selectSingle%3A%20Select%20one%20element%20from%20a%20list%20of,checkboxes%20are%20displayed%20instead%20of%20a%20select%20list.]] allowed is.

No data to display

Actions

Also available in: Atom PDF