Skip to content

Commit

Permalink
Added option to disable TYPO3 meta tags
Browse files Browse the repository at this point in the history
  • Loading branch information
aimeos committed Jun 10, 2020
1 parent 87632bb commit 41a329c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Classes/Controller/CatalogController.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,9 @@ public function treeAction()
*/
protected function removeMetatags()
{
if( class_exists( '\TYPO3\CMS\Core\MetaTag\MetaTagManagerRegistry' ) )
{
if( class_exists( '\TYPO3\CMS\Core\MetaTag\MetaTagManagerRegistry' )
&& !\Aimeos\Aimeos\Base::getExtConfig( 'typo3Metatags', true )
) {
$registry = GeneralUtility::makeInstance( 'TYPO3\CMS\Core\MetaTag\MetaTagManagerRegistry' );

$registry->getManagerForProperty( 'keywords' )->removeProperty( 'keywords' );
Expand Down
2 changes: 2 additions & 0 deletions ext_conf_template.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ useAPC = 0
# cat=cache/apc; type=string; label=APC prefix:The prefix to distinguish configuration values from different instances
apcPrefix = t3:
# cat=frontend/canonical; type=boolean; label=TYPO3 canonical URLs:Enable TYPO3 9+ canonical URLs (creates duplicate canonical meta tags in list/detail pages)
typo3Metatags = 1
# cat=frontend/metatags; type=boolean; label=TYPO3 meta tags:Enable TYPO3 9+ meta tags instead of Aimeos meta tags for category lists and products
typo3Canonical = 0
# cat=backend; type=boolean; label=Show TYPO3 page tree in backend:Pages can have different configuration for the administration interface
showPageTree = 0
Expand Down

0 comments on commit 41a329c

Please sign in to comment.