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 #1

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',
),
),
Actions #3

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

Actions #4

Updated by Sven Juergens over 13 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100
Actions #5

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF