Feature #19898
closedadding itemsProcFunc to wizard functionality
100%
Description
there are a some possiblities to add a wizard to an BE Input Field,
with this code you can add a select field
'wizards' => array(
'_PADDING' => 2,
'select' => array(
'type' => 'select',
'mode' => '',
'items' => array(
array('Label 1', 'Lalue 1'),
),
'itemsProcFunc' => 'tx_procfuncexample_addFieldsToFlexForm->addFields',
),
),
but the "itemsProcFunc" does not work in this case
so please add the follwowing Line to class.t3lib_tceforms.php in function renderWizards about line: 3448
it's similar the same like in the function getSingleField_typeSelect
case 'select':
$fieldValue = array('config' => $wConf);
$TSconfig = $this->setTSconfig($table, $row);
$TSconfig[$field] = $TSconfig[$field]['wizards.'][$wid.'.'];
$selItems = $this->addSelectOptionsToItemArray($this->initItemArray($fieldValue), $fieldValue, $TSconfig, $field);
+if ($wConf['itemsProcFunc']) $selItems = $this->procItems($selItems,$PA['fieldTSConfig']['itemsProcFunc.'],$wConf,$table,$row,$field);
i added a example Extension
(issue imported from #M10245)
Files