[TYPO3-english] Extending TCA the 6.1 way

Markus Klein klein.t3 at mfc-linz.at
Tue Oct 1 14:39:33 CEST 2013


Still one could do other stuff before returning the array in the end.

Kind regards
Markus

------------------------------------------------------------
Markus Klein
TYPO3 CMS Active Contributors Team Member

> -----Original Message-----
> From: typo3-english-bounces at lists.typo3.org [mailto:typo3-english-
> bounces at lists.typo3.org] On Behalf Of François Suter
> Sent: Tuesday, October 01, 2013 12:38 PM
> To: typo3-english at lists.typo3.org
> Subject: Re: [TYPO3-english] Extending TCA the 6.1 way
> 
> Hi Stephan,
> 
> > Well, I cannot find any official documentation about this. Instead,
> > the current Core API [2] tells me to use ext_tables.php.
> 
> Oh, that needs to be updated. Could you open a bug report there, please:
> 
> http://forge.typo3.org/projects/typo3v4-doc_core_api/issues
> 
> > So, what to do now? Should I create TCA/{tablename}.php files for my
> > very own tables without ext_tables.php on the one side but add
> > extending code to the ext_tables.php on the other side?
> 
> Yes. You can't avoid using ext_tables.php when extending an existing table,
> because you need to call methods like:
> 
> \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addFieldsToPalette
> ();
> 
> which you can't do in a TCA/{tablename}.php, since it is expected to just
> contain a return statement with an array.
> 
> Cheers
> 
> --
> 
> Francois Suter
> 
> Work: Cobweb Development Sarl - http://www.cobweb.ch
> 
> TYPO3: Help the project! - http://typo3.org/contribute/
> 
> Appreciate my work? Support me -
> http://www.monpetitcoin.com/en/francois/support-me/
> 
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english



More information about the TYPO3-english mailing list