[TYPO3-english] TCA label_userFunc with ext_autoload.php does not work

Roland most.wanted at gmx.at
Wed Oct 10 10:35:15 CEST 2012


hi everybody,

i try to use 'label_userFunc' in my extensions ext_tables.php:

--- quote ---
'label_userFunc' => 'tx_custom_tca_labels->getCustomTcaLabelForTitel'
--- /quote ---

if i use 'include_once' in my ext_localconf.php everything works:

--- quote ---
$extensionPath = t3lib_extMgm::extPath('myextension');
include_once $extensionPath . 
'Configuration/TCA/Classes/class.tx_custom_tca_labels.php';
--- /quote ---

but if i (as recommended in the TCA documentation) try to use 
ext_autoload.php instead of ext_localconf.php '[No title]' is put out 
instead of my awesome custom labels:

--- quote ---
$extensionPath = t3lib_extMgm::extPath('myextension');
return array(
	'tx_custom_tca_labels' => $extensionPath . 
'Configuration/TCA/Classes/class.tx_custom_tca_labels.php',
	'tx_custom_tca_select_items' => $extensionPath . 
'Configuration/TCA/Classes/class.tx_custom_tca_select_items.php',
);
--- /quote ---

i use TYPO3 4.7.4.

any ideas?

kind regards.

roland


More information about the TYPO3-english mailing list