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

20 lines
552 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
);
\TYPO3\CMS\Core\Utility\ArrayUtility::mergeRecursiveWithOverrule($GLOBALS['TCA'][$tableName], [
'columns' => [
'lastUpdated' => [
'config' => [
'eval' => 'date,int',
],
],
],
]);
})('ds_site', 'pages');