[TYPO3-core] RFC #10245: adding itemsProcFunc to wizard functionality

Kai Vogel kai.vogel at speedprogs.de
Wed Mar 9 08:34:27 CET 2011


 Hi,

 Reminder #2.

 Best regards,
-- 
 Kai Vogel



 On Wed, 12 Jan 2011 22:20:27 +0100, Kai Vogel wrote:
> Hey all,
>
> this is a SVN patch request and reminder for a feature request from 
> 2009 ;-)
>
> Type: feature
>
> Branch: trunk
>
> BT reference:
> http://bugs.typo3.org/view.php?id=10245
>
> Problem:
> It's not possible to add items via "itemsProcFunc" to a wizard of
> type "select" for a field in TCA.
>
> Solution:
> The attached patch extends the "renderWizards" method to process an
> "itemsProcFunc" in wizard config.
>
> Example:
>
> TCA configuration in extTables.php
> ===================================================================
> include(PATH_site . 'user_test.php');
> $GLOBALS['TCA']['tt_content']['columns']['header']['config'] = array(
>   'type'    => 'input',
>   'size'    => 30,
>   'wizards' => array(
>     'test'    => array(
>       'type'          => 'select',
>       'items'         => array(),
>       'itemsProcFunc' => 'user_test->main', // <-- new!
>     )
>   )
> );
>
> Content of the user_test.php
> ===================================================================
> <?php
>   class user_test {
>     public function main(&$params, &$ref) {
>       $params['items'] = array(
>         array('First header', 'first'),
>         array('Second header', 'second'),
>       );
>     }
>   }
> ?>
>
>
> Best regards
> --
> Kai Vogel



More information about the TYPO3-team-core mailing list