[TYPO3-dev] bug in TCA handling?

Dr. Ronald P. Steiner Ronald.Steiner at googlemail.com
Tue Mar 4 06:59:10 CET 2008


Hi List,

according to: 
http://typo3.org/documentation/document-library/core-documentation/doc_core_api/4.1.0/view/4/3/

this should be possible:

[code]
<my_test>
   <TCEforms>
    <label>My Test</label>
    <config>
      <type>text</type>
      <wizards>
        <select_test_wizard>
          <type>select</type>
          <itemsProcFunc>tx_myclass_tca->testfunc</itemsProcFunc>
        </select_test_wizard>
      </wizards>
    </config>
   </TCEforms>
</my_test>
[/code]

[code]
class tx_myclass_tca {
     function testfunc ( &$params, &$pObj ) {
       $params['items'] = array();
       $params['items'][0] = array('   ','','');
       $params['items'][1] = array('test','test inhalt','');
       $params['items'][2] = array('test2','test inhalt2','');
     }
}
[/code]

but is is not working. itemsProcFunc does not call the function and 
therefore no items are generated.

Has anybody experienced the same? Is there a way around?

greetings

Ron




More information about the TYPO3-dev mailing list