Issue: tx_news plugin does not parse og and meta description tags inside head tag

We had an issue on a TYPO3 6.2.31 site. The tx_news extension did not render the og and meta description inside the head.

Below you can find a solution for this problem:

Open the following file: news/Classes/ViewHelpers/MetaTagViewHelper.php

On line 84 you can find:

$pageRenderer->addMetaTag($this->tag->render());

Renamed the line to:

// Will not render the meta tags on TYPO3 6.2.X:
//$pageRenderer->addMetaTag($this->tag->render());
// Below line is a workaround and will place the meta tags right above the </head>.
$pageRenderer->addHeaderData($this->tag->render());
Share on facebook
Share on google
Share on twitter
Share on linkedin
Share on whatsapp