TYPO3-metaseo icon indicating copy to clipboard operation
TYPO3-metaseo copied to clipboard

News extension description-field with fallback to teaser-field for meta-description

Open wrock opened this issue 7 years ago • 0 comments

When using ext:news together with ext:metaseo you get the description-metatag twice. Once from ext:metaseo (news-teaser-field) and once from ext:news.

This could be avoided by:

  1. Commenting out metatag-viewhelper in your version of ext/news/Resources/Private/Partials/Detail/Opengraph.html

  2. A small modification to ext:metaseo, which is already collaborating with ext:news nicely: 2.1 ext/metaseo/Classes/Page/Part/MetatagPart.php: Line 290 add: if (isset($GLOBALS['TSFE']->register['newsDescription'])) { $connector->setMetaTag('description', $GLOBALS['TSFE']->register['newsDescription']); } 2.2 ext/metaseo/Configuration/TypoScript/setup.txt, final line: plugin.tx_news.settings.detail.registerProperties := addToList(keywords,title,teaser,authoremail,description)

MetaSEO version: 3.0.0

TYPO3 version: 8.7.7

PHP version: 7.0.2

News version: 6.1.1

wrock avatar Sep 27 '17 15:09 wrock