I have a custom extension and on the detail page of the records I want to seo pimp the profile sites. I'm also using tx_metaseo.
I'm already changing the 'title' tag via the show action like this:
/**
* action show
*
* @param Application $record
* @return void
*/
public function showAction(Application $record=null) {
// For the search
$GLOBALS['TSFE']->indexedDocTitle = $record->getName();
}
}
But since I have tx_metaseo installed ... I'm also getting the generall meta tags. So on the detail page of my extension I would like to override them:
<meta name="DCTERMS.title" content="">
<meta name="description" content="">
<meta name="DCTERMS.description" content="">
<meta name="keywords" content="">
<meta name="DCTERMS.subject" content="">
<meta property="og:title" content="">
<meta property="og:type" content="">
<meta property="og:email" content="">
... in addtion I want to add/set:
<meta property="og:description" content="">
... and I want to have a lange consideration (Default/German/English) ... so I would like to add (for German):
<meta http-equiv="Content-Language" content="de" />
<meta name="Language" CONTENT="Deutsch"/>
How can I do this?
I assume I need to work with Hooks/Signals? https://docs.typo3.org/typo3cms/extensions/metaseo/DeveloperManual/Index.html#signals But how?
Here is a similar discussion: https://github.com/webdevops/TYPO3-metaseo/issues/477
Edit: I tried this to prevent the meta tags created by tx_metaseo
#[globalVar = TSFE:id = 71, GP:tx_metaseo|var = 0]
[globalVar = TSFE:id = 71, GP:tx_metaseo]
#page.metaseo.meta.og:title >
#page.metaseo.meta.og:description >
page.meta.og:title =
page.meta.og:description =
[global]
... or:
[globalVar = TSFE:id = 71]
plugins.tx_metaseo >
[global]