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

49 lines
1.9 KiB
PHP
Raw Permalink Normal View History

2019-12-13 12:35:05 +01:00
<?php
2024-02-08 08:04:56 +01:00
declare(strict_types=1);
use TYPO3\CMS\Core\Utility\ArrayUtility;
(static function (string $extensionKey, string $tableName, string $ctype) {
ArrayUtility::mergeRecursiveWithOverrule($GLOBALS['TCA'][$tableName], [
2019-12-13 12:35:05 +01:00
'types' => [
$ctype => [
'showitem' => implode(',', [
'--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general',
2024-02-08 08:04:56 +01:00
'--palette--;;general',
'--palette--;;headers',
'image',
2019-12-13 12:35:05 +01:00
'--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.appearance',
2024-02-08 08:04:56 +01:00
'--palette--;;frames',
'--palette--;;appearanceLinks',
2019-12-13 12:35:05 +01:00
'--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language',
2024-02-08 08:04:56 +01:00
'--palette--;;language',
2019-12-13 12:35:05 +01:00
'--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access',
2024-02-08 08:04:56 +01:00
'--palette--;;hidden',
'--palette--;;access',
2019-12-13 12:35:05 +01:00
'--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:categories',
2024-02-08 08:04:56 +01:00
'categories',
2019-12-13 12:35:05 +01:00
'--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes',
2024-02-08 08:04:56 +01:00
'rowDescription',
2019-12-13 12:35:05 +01:00
'--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended',
]),
],
],
'columns' => [
'header' => [
'config' => [
2022-12-06 08:18:42 +01:00
'eval' => 'trim',
'required' => true,
2019-12-13 12:35:05 +01:00
],
],
2020-04-22 18:54:28 +02:00
'CType' => [
'config' => [
'sortItems' => [
'label' => 'asc',
],
],
],
2019-12-13 12:35:05 +01:00
],
]);
})('ds_site', 'tt_content', 'image');