TYPO3:修改TSConfig 1页不适用于cs_seo

时间:2019-10-31 09:12:45

标签: typo3 typoscript typo3-8.x typo3-extensions

我正在使用cs_seo。7.24的扩展名TYPO3 v8 v3.1

我正在按照documentation中的说明在特定页面上禁用扩展程序,方法是在页面tsConfig中输入以下内容

 # page TSconfig
 mod.web_layout.tx_csseo.disable = 0

但是meta标签仍然加载在页面顶部吗?

<title>Test Title</title>
<meta name="description" content="">
<link rel="canonical" href="http://localhost/page-title" />
<meta property="og:type" content="Test type" />
<meta property="og:title" content="Test title" />
<meta property="og:description" content="Test desc" />
<meta property="og:url" content="http://localhost/page-title" />
<meta property="og:site_name" content="Test Site" />
<meta property="og:image" content="http://localhost/fileadmin/templates/facebook.jpg" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:image" content="http://localhost/fileadmin/templates/twitter_default.jpg" />

即使选择“仅标题”选项,内容仍会出现。

任何人都知道为什么仍会加载此内容的任何原因,当我查看我的页面tsConfig时,它如下所示出现在mod / weblayout分支下

enter image description here

该页面还有以下配置: enter image description here

我需要此页面来加载而没有这些附加标签!有人可以帮忙吗?

1 个答案:

答案 0 :(得分:1)

mod.web_layout.tx_csseo.disable = 0 是用于禁用后端评估的设置。这不会更改前端中的任何内容。

看来,您必须在此页面上覆盖/取消设置某些TS设置。看看https://github.com/clickstorm/cs_seo/blob/master/Configuration/TypoScript/Setup/Meta/openGraph.typoscript和EXT:cs_seo的其他TS文件