2019-11-13 23:40:26 +01:00
|
|
|
<?php
|
|
|
|
|
2019-12-13 12:11:32 +01:00
|
|
|
(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:11:32 +01:00
|
|
|
|
2019-12-13 12:35:05 +01:00
|
|
|
$languagePath = 'LLL:EXT:' . $extensionKey . '/Resources/Private/Language/locallang_tca.xlf:' . $tableName . '.';
|
|
|
|
|
2019-12-13 12:11:32 +01:00
|
|
|
\TYPO3\CMS\Core\Utility\ArrayUtility::mergeRecursiveWithOverrule($GLOBALS['TCA'][$tableName], [
|
|
|
|
'columns' => [
|
|
|
|
'lastUpdated' => [
|
2019-12-13 12:35:05 +01:00
|
|
|
'label' => $languagePath . 'lastUpdated',
|
2019-12-13 12:11:32 +01:00
|
|
|
'config' => [
|
|
|
|
'eval' => 'date,int',
|
|
|
|
],
|
|
|
|
],
|
2021-01-22 12:38:40 +01:00
|
|
|
'description' => [
|
|
|
|
'config' => [
|
|
|
|
'max' => 200,
|
|
|
|
],
|
|
|
|
],
|
2019-12-13 12:11:32 +01:00
|
|
|
],
|
|
|
|
]);
|
2021-01-22 12:38:40 +01:00
|
|
|
|
2019-12-13 12:11:32 +01:00
|
|
|
})('ds_site', 'pages');
|