From d4b7ab32765181167fe72476cb54c1e10d0e29ac Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Fri, 13 Dec 2019 12:35:05 +0100 Subject: [PATCH] Adjust TCA for page and content --- Configuration/TCA/Overrides/pages.php | 3 ++ Configuration/TCA/Overrides/tt_content.php | 36 ++++++++++++++++++++ Resources/Private/Language/locallang_tca.xlf | 11 ++++++ 3 files changed, 50 insertions(+) create mode 100644 Configuration/TCA/Overrides/tt_content.php create mode 100644 Resources/Private/Language/locallang_tca.xlf diff --git a/Configuration/TCA/Overrides/pages.php b/Configuration/TCA/Overrides/pages.php index 0ccccea..66fd04d 100644 --- a/Configuration/TCA/Overrides/pages.php +++ b/Configuration/TCA/Overrides/pages.php @@ -7,9 +7,12 @@ $extensionKey ); + $languagePath = 'LLL:EXT:' . $extensionKey . '/Resources/Private/Language/locallang_tca.xlf:' . $tableName . '.'; + \TYPO3\CMS\Core\Utility\ArrayUtility::mergeRecursiveWithOverrule($GLOBALS['TCA'][$tableName], [ 'columns' => [ 'lastUpdated' => [ + 'label' => $languagePath . 'lastUpdated', 'config' => [ 'eval' => 'date,int', ], diff --git a/Configuration/TCA/Overrides/tt_content.php b/Configuration/TCA/Overrides/tt_content.php new file mode 100644 index 0000000..8713091 --- /dev/null +++ b/Configuration/TCA/Overrides/tt_content.php @@ -0,0 +1,36 @@ + [ + $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', + ], + ], + ], + ]); +})('ds_site', 'tt_content', 'image'); diff --git a/Resources/Private/Language/locallang_tca.xlf b/Resources/Private/Language/locallang_tca.xlf new file mode 100644 index 0000000..3565f88 --- /dev/null +++ b/Resources/Private/Language/locallang_tca.xlf @@ -0,0 +1,11 @@ + + + +
+ + + Published + + + +