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?
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?
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]
Thank you Georg for the hint. For TYPO3 version 9 you should use new typoscript condition syntax:
// Prevent bootstrap_package og:attributes for single view
[(request.getQueryParams()['tx_news_pi1'])['news'] > 0]
page.meta.og:title >
page.meta.og:site_name >
page.meta.og:description >
page.meta.og:image >
[end]