1

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?

4

2 回答 2

6

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]
于 2016-09-20T11:09:15.040 回答
1

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]
于 2019-01-11T20:30:04.473 回答