[TYPO3-dev] Typo3 4.5.2 and label_userFunc

Kay Strobach typo3 at kay-strobach.de
Mon Jul 4 21:05:06 CEST 2011


Hey,

if i remember right you need to do it like:

$TCA['yourexttablename']['ctrl']['label_userFunc'] =
"EXT:yourextkey/class.tx_yourext_class.php:tx_yourext_class->getUserLabel";

In one of my extensions it is working with:

$TCA['tx_ksservices_service']['ctrl']['label_userFunc'] =
'tx_ksservices->getServiceRecordTitle',

If i remember right, the user prefix is deprecated here (unsure), use
the one from the extension prefixed with tx_ ... .


Take a look here (search for: label_userFunc ...).

http://typo3.org/documentation/document-library/core-documentation/doc_core_api/4.2.0/view/4/2/#id4240310

Regards
Kay

Am 04.07.2011 20:42, schrieb Éric Thibault:
> Hello to all of you!
> 
> I was using the label_userFunc inside my extension's ext_tables.php with Typo3 4.1.9 and everything worked great... But now with my Typo3 4.5.2, nothing works anymore?!?!?!
> 
> I used to follow the instructions on this page for label_userFunc (http://typo3.org/documentation/document-library/core-documentation/doc_core_api/4.3.0/view/4/2/#id2517078) and it used to work!
> 
> As my Germen is just good enough to ask for a beer, this page (http://www.typo3.net/forum/beitraege/extensions_schreiben/102411/ ) seams to talk about problems with label_userFunc?
> 
> I realy do need to have custom labels for my customers!
> 
> Best regards!
> 
> 
> 
> 


-- 
http://www.kay-strobach.de - Open Source Rocks

TYPO3 .... inspiring people to share!
Get involved: http://typo3.org




More information about the TYPO3-dev mailing list