Skip to content
This repository has been archived by the owner on Aug 8, 2022. It is now read-only.

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

Open
wrock opened this issue Sep 27, 2017 · 0 comments

Comments

@wrock
Copy link

wrock commented Sep 27, 2017

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants