diff --git a/typo3/sysext/core/Documentation/Changelog/master/Feature-90425-AddSeoFieldsToInfoModule.rst b/typo3/sysext/core/Documentation/Changelog/master/Feature-90425-AddSeoFieldsToInfoModule.rst new file mode 100644 index 0000000000000000000000000000000000000000..8317a061a9d3a185097bcbe2b56ef0adbefe4d58 --- /dev/null +++ b/typo3/sysext/core/Documentation/Changelog/master/Feature-90425-AddSeoFieldsToInfoModule.rst @@ -0,0 +1,21 @@ +.. include:: ../../Includes.txt + +=============================================== +Feature: #90425 - Add seo fields to info module +=============================================== + +See :issue:`90425` + +Description +=========== + +Two more options are added to the Info module (sub-module: "Pagetree Overview") +- "SEO" and "Social Media" to get a quick overview of the relevant data. + + +Impact +====== + +The options "SEO" and "Social Media" are added to the Pagetree Overview. + +.. index:: Backend, TSConfig, ext:seo diff --git a/typo3/sysext/seo/Resources/Private/Language/locallang_tca.xlf b/typo3/sysext/seo/Resources/Private/Language/locallang_tca.xlf index 1c6271c282468899351ffedcb210bb2862f29ad9..4362a194a82baa6059bb0b20f40802701f608cea 100644 --- a/typo3/sysext/seo/Resources/Private/Language/locallang_tca.xlf +++ b/typo3/sysext/seo/Resources/Private/Language/locallang_tca.xlf @@ -44,13 +44,13 @@ <source>Twitter Cards</source> </trans-unit> <trans-unit id="pages.twitter_title" resname="pages.twitter_title"> - <source>Title</source> + <source>Twitter Title</source> </trans-unit> <trans-unit id="pages.twitter_description" resname="pages.twitter_description"> - <source>Description</source> + <source>Twitter Description</source> </trans-unit> <trans-unit id="pages.twitter_image" resname="pages.twitter_image"> - <source>Image</source> + <source>Twitter Image</source> </trans-unit> <trans-unit id="pages.twitter_card" resname="pages.twitter_card"> <source>Type of card to show</source> diff --git a/typo3/sysext/seo/Resources/Private/Language/locallang_webinfo.xlf b/typo3/sysext/seo/Resources/Private/Language/locallang_webinfo.xlf new file mode 100644 index 0000000000000000000000000000000000000000..f79653fa127047be9fc7009c5e84c981ca40c9a0 --- /dev/null +++ b/typo3/sysext/seo/Resources/Private/Language/locallang_webinfo.xlf @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<xliff version="1.0" xmlns:t3="http://typo3.org/schemas/xliff"> + <file t3:id="1582063376" source-language="en" datatype="plaintext" original="EXT:seo/Resources/Private/Language/locallang_webinfo.xlf" date="2020-02-18T22:02:42Z" product-name="cms"> + <header/> + <body> + <trans-unit id="seo" resname="seo"> + <source>SEO</source> + </trans-unit> + <trans-unit id="social_media" resname="social_media"> + <source>Social Media</source> + </trans-unit> + </body> + </file> +</xliff> diff --git a/typo3/sysext/seo/ext_localconf.php b/typo3/sysext/seo/ext_localconf.php index c244e8f53833486c20d3a711b43c6cbcd8792026..a184f67f882d0afd1ae721544c4311404cb606ab 100644 --- a/typo3/sysext/seo/ext_localconf.php +++ b/typo3/sysext/seo/ext_localconf.php @@ -26,3 +26,16 @@ unset($metaTagManagerRegistry); } } ')); + +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(trim(' + mod.web_info.fieldDefinitions { + seo { + label = LLL:EXT:seo/Resources/Private/Language/locallang_webinfo.xlf:seo + fields = title,slug,seo_title,description,no_index,no_follow,canonical_link,sitemap_changefreq,sitemap_priority + } + social_media { + label = LLL:EXT:seo/Resources/Private/Language/locallang_webinfo.xlf:social_media + fields = title,og_title,og_description,twitter_title,twitter_description + } + } +'));