Issue Feature Closed

#101899allow Itemsfunctions for ValuePicker in TCA and FlexForms

Dieter Porth 09/12/23, 07:01 updated 12/22/24, 22:36

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.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 2

  1. Garvin Hicking commented and changed category status New Needs Feedback <span data-processor="relativetime" data-value="2024-07-31T10:34:41+00:00" > 07/31/24, 10:34 </span>

    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?

  2. Garvin Hicking commented and changed status Needs Feedback Closed <span data-processor="relativetime" data-value="2024-12-22T22:36:20+00:00" > 12/22/24, 22:36 </span>

    I’m closing this due to lack of feedback. If you feel this is a mistake please follow up with more details. Thank you!