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
Updated by Sven Juergens over 15 years ago
adding patches for TYPO3 4.2.7 dev and TYPO3 4.3 current trunk.
Testet with the example Extension.
now you can use a select wizard with itemsProcFunc
example
'wizards' => array(
'_PADDING' => 2,
'select' => array(
'type' => 'select',
'mode' => '',
'items' => array(
array('Label 1', 'Value1'),
),
'itemsProcFunc' => 'tx_procfuncexample_addFieldsToFlexForm->addFields',
),
),
Updated by Mr. Hudson over 13 years ago
Patch set 3 of change Ia9ab12e110b98af874748cd9e875a4d2d6cbcb2e has been pushed to the review server.
It is available at http://review.typo3.org/1107
Updated by Sven Juergens over 13 years ago
- Status changed from Accepted to Resolved
- % Done changed from 0 to 100
Applied in changeset 0f0338349b368f22d7471411c341def6e680c995.