diff --git a/Configuration/TCA/Overrides/pages.php b/Configuration/TCA/Overrides/pages.php index 4bd424ad2fcbc4bc8690b3842b6c35b19bb8558f..e8c19a847bc76532250a6bc8b97bb6373a3f6c44 100644 --- a/Configuration/TCA/Overrides/pages.php +++ b/Configuration/TCA/Overrides/pages.php @@ -211,13 +211,6 @@ $columns = array_merge( \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('pages', $columns); \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('pages_language_overlay', $imageColumns); -$GLOBALS['TCA']['pages']['palettes']['editorialWithNewsAuthor'] = [ - 'showitem' => 'tx_sgnews_author;LLL:EXT:sg_news/Resources/Private/Language/locallang_db.xlf:pages.tx_sgnews_author.inPalette, - author;LLL:EXT:cms/locallang_tca.xlf:pages.author_formlabel, - --linebreak--, lastUpdated;LLL:EXT:cms/locallang_tca.xlf:pages.lastUpdated_formlabel', - 'canNotCollapse' => 1, -]; - $GLOBALS['TCA']['pages']['palettes']['titleDescriptionAndHighlightFlag'] = [ 'showitem' => 'subtitle;LLL:EXT:sg_news/Resources/Private/Language/locallang_db.xlf:pages.subtitle.inPalette, --linebreak--, description, @@ -228,6 +221,13 @@ $GLOBALS['TCA']['pages']['palettes']['titleDescriptionAndHighlightFlag'] = [ if (\SGalinski\SgNews\Utility\VersionUtility::isVersion870OrHigher()) { + $GLOBALS['TCA']['pages']['palettes']['editorialWithNewsAuthor'] = [ + 'showitem' => 'tx_sgnews_author;LLL:EXT:sg_news/Resources/Private/Language/locallang_db.xlf:pages.tx_sgnews_author.inPalette, + author;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.author_formlabel, + --linebreak--, lastUpdated;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.lastUpdated_formlabel', + 'canNotCollapse' => 1, + ]; + # # Pages # @@ -309,6 +309,13 @@ if (\SGalinski\SgNews\Utility\VersionUtility::isVersion870OrHigher()) { --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.access;access' ]; } else { + $GLOBALS['TCA']['pages']['palettes']['editorialWithNewsAuthor'] = [ + 'showitem' => 'tx_sgnews_author;LLL:EXT:sg_news/Resources/Private/Language/locallang_db.xlf:pages.tx_sgnews_author.inPalette, + author;LLL:EXT:cms/locallang_tca.xlf:pages.author_formlabel, + --linebreak--, lastUpdated;LLL:EXT:cms/locallang_tca.xlf:pages.lastUpdated_formlabel', + 'canNotCollapse' => 1, + ]; + # # Pages #