Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Typo3 使用tx_metaseo操作/更改站点标题_Typo3_Typoscript_Typo3 7.6.x - Fatal编程技术网

Typo3 使用tx_metaseo操作/更改站点标题

Typo3 使用tx_metaseo操作/更改站点标题,typo3,typoscript,typo3-7.6.x,Typo3,Typoscript,Typo3 7.6.x,我无法更改浏览器的标题。这就是我呈现标题的方式: page.headerData.5 = TEXT page.headerData.5.field = subtitle // title page.headerData.5.wrap = <title>|&nbsp;&#124; IrgendEinName</title> page.headerData.5=文本 page.headerData.5.field=副标题//标题 page.headerDat

我无法更改浏览器的标题。这就是我呈现标题的方式:

page.headerData.5 = TEXT
page.headerData.5.field = subtitle // title
page.headerData.5.wrap = <title>|&nbsp;&#124; IrgendEinName</title>
page.headerData.5=文本
page.headerData.5.field=副标题//标题
page.headerData.5.wrap=|和#124;伊尔根登纳姆
。。。这很有效。此外,我使用tx_metaseo,这也很有效。如果我现在想在属性->搜索引擎优化,然后在

标题标签(绝对,无前缀/后缀)

。。。我不能更改标题

我现在的解决方案是:

[globalVar = TSFE:id = 24]
page.headerData.5 = TEXT
page.headerData.5.field = tx_metaseo_pagetitle
page.headerData.5.wrap = <title>|&nbsp;&#124; IrgendEinName</title>
[end]

[globalVar = TSFE:id != 24]
page.headerData.5 = TEXT
page.headerData.5.field = subtitle // title
page.headerData.5.wrap = <title>|&nbsp;&#124; IrgendEinName</title>
[end]
[globalVar=TSFE:id=24]
page.headerData.5=文本
page.headerData.5.field=tx\u metaseo\u页面标题
page.headerData.5.wrap=|和#124;伊尔根登纳姆
[完]
[globalVar=TSFE:id!=24]
page.headerData.5=文本
page.headerData.5.field=副标题//标题
page.headerData.5.wrap=|和#124;伊尔根登纳姆
[完]
显然,对于一个网站来说,这是好的。但还有其他选择吗?例如,使用.if.isNull。或者.if.isFalse。我说“如果tx_metaseo_pagetitle为空,请选择标题?”?
if.notEmpty应该可以工作,但我现在无法测试它。我很快找到了这个解决方案:

[globalVar = TSFE:page|tx_metaseo_pagetitle=]
[else]
  page.headerData.5 >
  page.headerData.5 = TEXT
  page.headerData.5 {
      wrap = <title>|</title>
      field = tx_metaseo_pagetitle
  }
[global]
[globalVar=TSFE:page | tx_metaseo_pagetitle=]
[其他]
页眉数据5>
page.headerData.5=文本
第页,标题数据。5{
包裹=|
字段=发送\元搜索\页面标题
}
[全球]