Story #62394

TCA Overrides autoloader

Added by Sabine Deeken almost 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-10-22
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Sprint Focus:

Description

Hello everybody,

I have just extended the pages table, like described here with tt_content: http://docs.typo3.org/typo3cms/TCAReference/ExtendingTca/Examples/Index.html
the TCA Overrides just appear in the TYPO3 Backend after I called them from ext_tables.php
with

include_once(TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY)."Configuration/TCA/Overrides/pages.php");

If it is ok to call the Configuration Overrides like this it would be nice to find it in the Documentation,
but if there is an if-clause needed (I just copied from the git-Version of direct_mail, there is an if-clause, depending on the tt_address version as it looks:
if (VersionNumberUtility::convertVersionNumberToInteger(TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getExtensionVersion('tt_address')) <= VersionNumberUtility::convertVersionNumberToInteger('2.3.5')) {

)

With the best regards,
Sabine

#1

Updated by Markus Klein almost 7 years ago

  • Status changed from New to Needs Feedback

Please ask questions on the forum first, thanks.

You don't need to include anything, just place the file in that folder and the Core will include it automatically.

#2

Updated by Sabine Deeken almost 7 years ago

hm, that was what I did first, but the field did not appear. really.
it was similar as here: https://forge.typo3.org/issues/59397 but in the pages table

#3

Updated by Sabine Deeken almost 7 years ago

uh? removed the line in ext_tables.php, but the field still there. Wonder where it was in the beginning.
??
maybe because I first had no ext_tables.php file...

+1

#4

Updated by Markus Klein almost 7 years ago

  • Status changed from Needs Feedback to Closed

You need to clear the system caches

Also available in: Atom PDF