[TYPO3-english] Extending TCA the 6.1 way

Stephan Schuler Stephan.Schuler at netlogix.de
Tue Oct 1 12:11:57 CEST 2013


Hey there.


I just stumbled across some changes in 6.1 that feel pretty nice but are not completely documented.
One of them is the new way of creating TCA.

Some online resources [1] tell ne to create files like EXT:{extkey}/Configuration/TCA/{tablename}.php and make them return the tables TCA.
This makes adding new tables via ext_tables.php obsolete, as well as the dynamicConfigFile.

Well, I cannot find any official documentation about this. Instead, the current Core API [2] tells me to use ext_tables.php.


Using the TCA/{tablename}.php file that returns the TCA for that file works pretty well and looks nice. So I would like to stick to that.


But what’s the current way of extending existing tables?
My first idea was to just create e.g. a file called “pages.php” that returns only a part of pages TCA. I was hoping that the core mechanism would array_merge_recursive. But that seems to be not the case, the result reduces the pages TCA to my column only.

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?


[1] http://typo3.org/fileadmin/t3org/images/FM-news/2013/releases/TYPO3-v6-1-whats-new.pdf, page 34
[2]: http://docs.typo3.org/TYPO3/CoreApiReference/ExtensionArchitecture/FilesAndLocations/Index.html


Kind regards,

Stephan Schuler
Web-Entwickler

Telefon: +49 (911) 539909 - 0
E-Mail: Stephan.Schuler at netlogix.de
Website: media.netlogix.de<http://media.netlogix.de>

--
netlogix GmbH & Co. KG
IT-Services | IT-Training | Media
Neuwieder Straße 10 | 90411 Nürnberg
Telefon: +49 (911) 539909 - 0 | Fax: +49 (911) 539909 - 99
E-Mail: info at netlogix.de<mailto:info at netlogix.de> | Internet: www.netlogix.de<http://www.netlogix.de/>

netlogix GmbH & Co. KG ist eingetragen am Amtsgericht Nürnberg (HRA 13338)
Persönlich haftende Gesellschafterin: netlogix Verwaltungs GmbH (HRB 20634)
Umsatzsteuer-Identifikationsnummer: DE 233472254
Geschäftsführer: Stefan Buchta, Matthias Schmidt


More information about the TYPO3-english mailing list