Commit d0c5a1f7 authored by Kevin Appelt's avatar Kevin Appelt Committed by Richard Haeser

[TASK] Move field "description" to SEO tab in page properties

The description field is one of the most important fields
for SEO. When EXT:seo is installed, the description field can
be found on the SEO tab of the page properties. If EXT:seo
is not installed, the field will still be on the Metadata tab.

Resolves: #86516
Releases: master
Change-Id: I9d31f74bcc6e7f0f88a39e718b8437e2f92b30e6
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/62102Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarKevin Appelt <kevin.appelt@icloud.com>
Tested-by: default avatarOliver Bartsch <bo@cedev.de>
Tested-by: default avatarSusanne Moog <look@susi.dev>
Reviewed-by: default avatarKevin Appelt <kevin.appelt@icloud.com>
Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: default avatarSusanne Moog <look@susi.dev>
parent 464195d8
...@@ -7,3 +7,7 @@ ...@@ -7,3 +7,7 @@
'position' => 'replace:categories' 'position' => 'replace:categories'
] ]
); );
if (!\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('seo')) {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addFieldsToPalette('pages', 'metatags', '--linebreak--, description;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.description_formlabel', 'after:keywords');
}
...@@ -1149,7 +1149,7 @@ return [ ...@@ -1149,7 +1149,7 @@ return [
], ],
'metatags' => [ 'metatags' => [
'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.metatags', 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.metatags',
'showitem' => 'keywords;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.keywords_formlabel, --linebreak--, description;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.description_formlabel', 'showitem' => 'keywords;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.keywords_formlabel',
], ],
'editorial' => [ 'editorial' => [
'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.editorial', 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.editorial',
......
<?php <?php
defined('TYPO3_MODE') or die(); defined('TYPO3_MODE') or die();
$openGraphCropConfiguration = [ $openGraphCropConfiguration = [
...@@ -300,3 +301,5 @@ $GLOBALS['TCA']['pages'] = array_replace_recursive($GLOBALS['TCA']['pages'], $tc ...@@ -300,3 +301,5 @@ $GLOBALS['TCA']['pages'] = array_replace_recursive($GLOBALS['TCA']['pages'], $tc
(string)\TYPO3\CMS\Core\Domain\Repository\PageRepository::DOKTYPE_DEFAULT, (string)\TYPO3\CMS\Core\Domain\Repository\PageRepository::DOKTYPE_DEFAULT,
'after:title' 'after:title'
); );
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addFieldsToPalette('pages', 'seo', '--linebreak--, description;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.description_formlabel', 'after:seo_title');
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment