[TYPO3-english] How Use the debug() function in itemsProcFunc script

Rocky Ou rocky at o-r-q.info
Fri May 18 11:45:27 CEST 2012


On 05/18/2012 05:37 PM, Rocky Ou wrote:
> Hey,
>
> I am using TYPO3 4.5.11. I want to know what is in $params array so that
> I could generate different select list depend on another field's value.
> I have below TCA config:
> ......
> 'type' => 'select',
> 'items' => array(),
> 'itemsProcFunc' => 'tx_myext_element_types->main',
> ....
>
> Below is my tx_myext_element_types code:
> ....
> class tx_myext_element_types{
> function main(&$params, &$pObj){
> $params['items'] = array(
> array('One', 0),
> array('Two', 1)
> );
> t3lib_div::debug($params);
> }
> }
> ....
>
> The problem is there is not debug output for $params, when I edit the
> records in list Module. If I do not comment out the debug function, the
> TYPO3 does not show the form for new record.
>

>
> Thanks!
> Rocky

It turns out it only Does NOT work for inline items.

Rocky


More information about the TYPO3-english mailing list