[TYPO3-dev] TCA with TEXT element

Peter Russ peter.russ at 4many.net
Fri May 8 16:43:25 CEST 2009


--- Original Nachricht ---
Absender:   Stéphane Baribeau
Datum:       08.05.2009 16:32:
> Hi,
> i need a bit of your help about userFunc in TCA
> 
> my TCA looks like that :
> 
> ************************************
> "resume" => Array (
>             "exclude" => 0,
>             "label" =>
> "LLL:EXT:profweb_pratiques/locallang_db.xml:tx_profwebpratiques_list.resume",
> 
>             "config" => Array (
>                 "type" => "text",
>                 "cols" => "30",
>                 "rows" => "5",
>                 'userFunc' =>
> 'EXT:profweb_pratique/class.tx_profwebpratiques_tcemain.php:tx_profwebpratiques_tcemain->processTCAJS',
> 
>             )
>         ),
> *************************************
> 
> in my processTCAJS function i call an alert('test');
> 
> but thats doesnt look to work, what im doing wrong?
> i can't get help in the Typo3 Core API.
> 
> thanks.
> 
> have a nice day
> 

see TYPO3 API
['columns'][fieldname]['config'] / TYPE: "user"

You have to change type to user just as mentioned in the example of the 
doc. Everything is there (also for BE ;-)

Peter.

-- 
Fiat lux! Docendo discimus.
_____________________________
uon GbR

http://www.uon.li
http://www.xing.com/profile/Peter_Russ




More information about the TYPO3-dev mailing list