2020-08-19 23:15:18 +02: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 $contentType) {
|
2020-08-19 23:15:18 +02:00
|
|
|
$languagePath = 'LLL:EXT:' . $extensionKey . '/Resources/Private/Language/locallang_tca.xlf:' . $tableName . '.';
|
|
|
|
|
2024-02-08 08:04:56 +01:00
|
|
|
ArrayUtility::mergeRecursiveWithOverrule($GLOBALS['TCA'][$tableName], [
|
2020-08-19 23:15:18 +02:00
|
|
|
'types' => [
|
|
|
|
$contentType => [
|
|
|
|
'showitem' => implode(',', [
|
|
|
|
'--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general',
|
|
|
|
'--palette--;;general',
|
|
|
|
'--palette--;;headers',
|
|
|
|
'bodytext',
|
|
|
|
'pages',
|
|
|
|
'--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',
|
|
|
|
]),
|
|
|
|
'columnsOverrides' => [
|
|
|
|
'bodytext' => [
|
|
|
|
'config' => [
|
|
|
|
'enableRichtext' => true,
|
|
|
|
'richtextConfiguration' => 'default',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
]);
|
|
|
|
})('ds_site', 'tt_content', 'menu_pages');
|