Skip to content
This repository was archived by the owner on Aug 8, 2022. It is now read-only.
This repository was 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

Description

@wrock

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions