From 29c9793a3a63db241d886622366e60e9b4830f77 Mon Sep 17 00:00:00 2001 From: Georg Ringer <georg.ringer@gmail.com> Date: Wed, 20 Feb 2019 23:02:48 +0100 Subject: [PATCH] [FEATURE] Add seo fields to info module MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The options "SEO" and "Social Media" are added to the Pagetree Overview. Releases: master Resolves: #90425 Change-Id: Iaee3e15bf2699e349b02cb7950c2df3e9db0952a Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/59773 Reviewed-by: Simon Gilli <typo3@gilbertsoft.org> Reviewed-by: Christian Eßl <indy.essl@gmail.com> Reviewed-by: Daniel Goerz <daniel.goerz@posteo.de> Tested-by: TYPO3com <noreply@typo3.com> Tested-by: Christian Eßl <indy.essl@gmail.com> Tested-by: Daniel Goerz <daniel.goerz@posteo.de> --- ...Feature-90425-AddSeoFieldsToInfoModule.rst | 21 +++++++++++++++++++ .../Private/Language/locallang_tca.xlf | 6 +++--- .../Private/Language/locallang_webinfo.xlf | 14 +++++++++++++ typo3/sysext/seo/ext_localconf.php | 13 ++++++++++++ 4 files changed, 51 insertions(+), 3 deletions(-) create mode 100644 typo3/sysext/core/Documentation/Changelog/master/Feature-90425-AddSeoFieldsToInfoModule.rst create mode 100644 typo3/sysext/seo/Resources/Private/Language/locallang_webinfo.xlf 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 000000000000..8317a061a9d3 --- /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 1c6271c28246..4362a194a82b 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 000000000000..f79653fa1270 --- /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 c244e8f53833..a184f67f882d 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 + } + } +')); -- GitLab