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

Benjamin Mack benni at typo3.org
Wed Oct 10 11:47:01 CEST 2012


Hey Roland.

I think it's a matter of the autoloader and the cache.

Your ext_localconf.php looks fine.

Two things I'd try out.

Your ext_autoload.php looks like this.

--- 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 ---

1) I think your classes should not be named "tx_custom_..." in an
extension called "myextension", but "tx_myextension_tca_labels" etc.
2) Make sure the autoloader cache is empty by deleting typo3temp/Cache/*

Hope this helps.

All the best,
Benni.


More information about the TYPO3-english mailing list