[TYPO3-dev] Defining TCA settings for different TYPO3 versions

Chris Müller mueller at cyperfection.de
Wed Nov 10 08:33:54 CET 2010


Hi Thomas,

for version detection you can use something like this:

if(t3lib_div::int_from_ver(TYPO3_version) >= 4003000) {
     ...
}

This example affects versions from 4.3 upwards.

Regards,
Chris.

Am 10.11.2010 02:19, schrieb Thomas "Thasmo" Deinhamer:
> Hello folks!
>
> What would be the best way to define/overwrite TCA
> settings for different TYPO3 versions?
>
> The specific TCA I'm talking about tends to be quite
> large - would it be okay to create separate files for
> each newer TYPO3 versions, which would hold additional
> TCA settings overriding the default tca.php definitions?
>
> And what's the correct way to determine the TYPO3 version?
>
> Thanks,
> Thomas





More information about the TYPO3-dev mailing list