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' => [
|
2022-01-05 10:17:11 +01:00
|
|
|
'rel' => [
|
|
|
|
'label' => 'rel Attribute of generated a Tag',
|
|
|
|
'config' => [
|
|
|
|
'type' => 'input',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'url' => [
|
|
|
|
'config' => [
|
|
|
|
'renderType' => 'inputLink',
|
|
|
|
'softref' => 'typolink',
|
|
|
|
],
|
|
|
|
],
|
2019-12-13 12:11:32 +01:00
|
|
|
'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
|
|
|
|
2022-01-05 10:17:11 +01:00
|
|
|
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes(
|
|
|
|
$tableName,
|
|
|
|
'rel',
|
|
|
|
\TYPO3\CMS\Core\Domain\Repository\PageRepository::DOKTYPE_LINK,
|
|
|
|
'after:url'
|
|
|
|
);
|
|
|
|
|
2019-12-13 12:11:32 +01:00
|
|
|
})('ds_site', 'pages');
|