Search code examples
templatestypo3facebook-opengraphtx-news

TYPO3 OpenGraph with EXT:news


I'm using TYPO3 and News System and Bootstrap Package.

I see the opengraph tags twice. One of the news and one of page. How i can resolve it?


Solution

  • You need to exclude the opengraph of the bootstrap package when being on a news detail page. Then you only get it once.

    Put this into your TypoScript

    [globalVar = GP:tx_news_pi1|news > 0]
        page.meta.og:title >
        page.meta.og:site_name > 
        page.meta.og:description > 
        page.meta.og:image >    
    [global]