ds-site/Configuration/TCA/Overrides/tt_content.php
2024-02-08 08:04:56 +01:00

48 lines
1.9 KiB
PHP

<?php
declare(strict_types=1);
use TYPO3\CMS\Core\Utility\ArrayUtility;
(static function (string $extensionKey, string $tableName, string $ctype) {
ArrayUtility::mergeRecursiveWithOverrule($GLOBALS['TCA'][$tableName], [
'types' => [
$ctype => [
'showitem' => implode(',', [
'--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general',
'--palette--;;general',
'--palette--;;headers',
'image',
'--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.appearance',
'--palette--;;frames',
'--palette--;;appearanceLinks',
'--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language',
'--palette--;;language',
'--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access',
'--palette--;;hidden',
'--palette--;;access',
'--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:categories',
'categories',
'--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes',
'rowDescription',
'--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended',
]),
],
],
'columns' => [
'header' => [
'config' => [
'eval' => 'trim',
'required' => true,
],
],
'CType' => [
'config' => [
'sortItems' => [
'label' => 'asc',
],
],
],
],
]);
})('ds_site', 'tt_content', 'image');