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

22 lines
729 B
PHP

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