From 0f0546fabada033d5df63fb77502fc9942307e07 Mon Sep 17 00:00:00 2001 From: Fabian Galinski <fabian@sgalinski.de> Date: Fri, 15 Sep 2017 21:29:53 +0200 Subject: [PATCH] [BUGFIX] Some labels aren't shown in TYPO3 8 --- Configuration/TCA/Overrides/pages.php | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/Configuration/TCA/Overrides/pages.php b/Configuration/TCA/Overrides/pages.php index 4bd424a..e8c19a8 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 # -- GitLab