Project

General

Profile

Actions

Feature #101899

open

allow Itemsfunctions for ValuePicker in TCA and FlexForms

Added by Dieter Porth about 1 year ago. Updated 4 months ago.

Status:
Needs Feedback
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
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.

Actions #1

Updated by Garvin Hicking 4 months ago

  • Category set to FormEngine aka TCEforms
  • Status changed from New to Needs Feedback

Maybe for this a custom rendertype would be better suited? The valuepickers from what I infer are designed more for static options and not for for example table-related input.

If you want a very specific layout for items that are more of a "type=select/group" relation, a custom rendertype might be better than extra complexity added to the core for these fields that were meant to be a bit simpler.

What do you think?

Actions

Also available in: Atom PDF