[TASK] Move page fields to new tab 'social media' 18/58718/3
authorJasmina Ließmann <code@frauliessmann.de>
Fri, 26 Oct 2018 15:03:22 +0000 (17:03 +0200)
committerBenni Mack <benni@typo3.org>
Sat, 27 Oct 2018 20:31:54 +0000 (22:31 +0200)
Move fields for open graph and twitter card to a new tab 'social media'

Resolves: #86514
Releases: master
Change-Id: I293f250b57f6bba3c696e77550584912db3491eb
Reviewed-on: https://review.typo3.org/58718
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Jürgen Heym <juergen.heym@hof-university.de>
Tested-by: Jürgen Heym <juergen.heym@hof-university.de>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/seo/Configuration/TCA/Overrides/pages.php
typo3/sysext/seo/Resources/Private/Language/locallang_tca.xlf

index c817f2f..f899925 100644 (file)
@@ -197,9 +197,17 @@ $GLOBALS['TCA']['pages'] = array_replace_recursive($GLOBALS['TCA']['pages'], $tc
     --div--;LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.tabs.seo,
         --palette--;;seo,
         --palette--;;robots,
-        --palette--;;opengraph,
-        --palette--;;twittercards,
         --palette--;;canonical,',
     (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_DEFAULT,
     'after:title'
 );
+
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes(
+    'pages',
+    '
+    --div--;LLL:EXT:seo/Resources/Private/Language/locallang_tca.xlf:pages.tabs.socialmedia,
+        --palette--;;opengraph,
+        --palette--;;twittercards,',
+    (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_DEFAULT,
+    'after:canonical_link'
+);
index 7d97c89..c8f3b95 100644 (file)
@@ -58,6 +58,9 @@
                        <trans-unit id="pages.canonical_link">
                                <source>Canonical link</source>
                        </trans-unit>
+                       <trans-unit id="pages.tabs.socialmedia">
+                               <source>Social media</source>
+                       </trans-unit>
                </body>
        </file>
 </xliff>