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

48 lines
1.4 KiB
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' => [
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',
],
],
'lastUpdated' => [
2019-12-13 12:35:05 +01:00
'label' => $languagePath . 'lastUpdated',
'config' => [
'eval' => 'date,int',
],
],
'description' => [
'config' => [
'max' => 200,
],
],
],
]);
2022-01-05 10:17:11 +01:00
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes(
$tableName,
'rel',
2022-09-21 13:45:59 +02:00
(string) \TYPO3\CMS\Core\Domain\Repository\PageRepository::DOKTYPE_LINK,
2022-01-05 10:17:11 +01:00
'after:url'
);
})('ds_site', 'pages');