Project

General

Profile

Actions

Feature #19898

closed

adding itemsProcFunc to wizard functionality

Added by Sven Juergens almost 16 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2009-01-24
Due date:
% Done:

100%

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

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

T3X_procfunc_example-0_0_0-z-200901240216.t3x (11.4 KB) T3X_procfunc_example-0_0_0-z-200901240216.t3x Administrator Admin, 2009-01-24 02:43
10245-4.2.7-trunk 5581.patch (724 Bytes) 10245-4.2.7-trunk 5581.patch Administrator Admin, 2009-06-12 10:14
10245-4.3-trunk 5581.patch (724 Bytes) 10245-4.3-trunk 5581.patch Administrator Admin, 2009-06-12 10:14
wizard_itemsProcFunc-core-10047.diff (834 Bytes) wizard_itemsProcFunc-core-10047.diff Administrator Admin, 2011-01-12 22:16
Actions

Also available in: Atom PDF