2019-12-13 12:35:05 +01:00
|
|
|
<?php
|
|
|
|
|
2020-08-21 12:43:33 +02:00
|
|
|
(function (string $extensionKey, string $tableName, string $ctype) {
|
|
|
|
\TYPO3\CMS\Core\Utility\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',
|
|
|
|
'--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' => 'required, trim',
|
|
|
|
],
|
|
|
|
],
|
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');
|