ds-site/Configuration/TCA/Overrides/pages.php

23 lines
729 B
PHP
Raw Normal View History

2019-11-13 23:40:26 +01:00
<?php
(function (string $extensionKey, string $tableName) {
2019-11-13 23:40:26 +01:00
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerPageTSConfigFile(
$extensionKey,
'Configuration/PageTSconfig/Index.tsconfig',
$extensionKey
);
2019-12-13 12:35:05 +01:00
$languagePath = 'LLL:EXT:' . $extensionKey . '/Resources/Private/Language/locallang_tca.xlf:' . $tableName . '.';
\TYPO3\CMS\Core\Utility\ArrayUtility::mergeRecursiveWithOverrule($GLOBALS['TCA'][$tableName], [
'columns' => [
'lastUpdated' => [
2019-12-13 12:35:05 +01:00
'label' => $languagePath . 'lastUpdated',
'config' => [
'eval' => 'date,int',
],
],
],
]);
})('ds_site', 'pages');