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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.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 V9:具有绝对路径的站点配置?_Typo3_Typo3 9.x - Fatal编程技术网

TYPO3 V9:具有绝对路径的站点配置?

TYPO3 V9:具有绝对路径的站点配置?,typo3,typo3-9.x,Typo3,Typo3 9.x,我想将我的站点配置为类似于以前TYPO3版本中的config.absRefPrefix行为 以前,当使用config.absRefPrefix=https://www.example.com/。现在有了新的站点配置模块,只有页面页眉和页脚的打字脚本生成的链接具有绝对路径。navi和content部分中的链接始终是相对的 有人知道如何将站点配置为与以前在旧的TYPO3版本中具有相同的行为吗?如果您希望在TYPO3 9或10中使用绝对URL,一种方法可以是typolink fluid ViewHel

我想将我的站点配置为类似于以前TYPO3版本中的
config.absRefPrefix
行为

以前,当使用
config.absRefPrefix=https://www.example.com/
。现在有了新的站点配置模块,只有页面页眉和页脚的打字脚本生成的链接具有绝对路径。navi和content部分中的链接始终是相对的


有人知道如何将站点配置为与以前在旧的TYPO3版本中具有相同的行为吗?

如果您希望在TYPO3 9或10中使用绝对URL,一种方法可以是typolink fluid ViewHelper的新“绝对”属性:

我已经在我的网站上快速测试了这个功能,非常适合我的徽标

对于导航:如果使用TYPO3 MenuProcessor和fluid创建菜单,还可以使用absolute=“true”属性。我也测试过这个,效果很好

对于内容元素,这些设置适用于9.5.11甚至10版:

// parseFunc
lib.parseFunc.tags.a.typolink.forceAbsoluteUrl = 1
lib.parseFunc.tags.link.typolink.forceAbsoluteUrl = 1
lib.parseFunc.tags.a.typolink.forceAbsoluteUrl.scheme = https
lib.parseFunc.tags.link.typolink.forceAbsoluteUrl.scheme = https

// parseFunc_RTE
lib.parseFunc_RTE.tags.a.typolink.forceAbsoluteUrl = 1
lib.parseFunc_RTE.tags.link.typolink.forceAbsoluteUrl = 1
lib.parseFunc_RTE.tags.a.typolink.forceAbsoluteUrl.scheme = https
lib.parseFunc_RTE.tags.link.typolink.forceAbsoluteUrl.scheme = https

我测试了所有内容,现在这里有一个完整的“绝对URL网站”。

如果您想在TYPO3 9或10中使用绝对URL,一种方法是为typolink fluid ViewHelper添加新的“绝对”属性:

我已经在我的网站上快速测试了这个功能,非常适合我的徽标

对于导航:如果使用TYPO3 MenuProcessor和fluid创建菜单,还可以使用absolute=“true”属性。我也测试过这个,效果很好

对于内容元素,这些设置适用于9.5.11甚至10版:

// parseFunc
lib.parseFunc.tags.a.typolink.forceAbsoluteUrl = 1
lib.parseFunc.tags.link.typolink.forceAbsoluteUrl = 1
lib.parseFunc.tags.a.typolink.forceAbsoluteUrl.scheme = https
lib.parseFunc.tags.link.typolink.forceAbsoluteUrl.scheme = https

// parseFunc_RTE
lib.parseFunc_RTE.tags.a.typolink.forceAbsoluteUrl = 1
lib.parseFunc_RTE.tags.link.typolink.forceAbsoluteUrl = 1
lib.parseFunc_RTE.tags.a.typolink.forceAbsoluteUrl.scheme = https
lib.parseFunc_RTE.tags.link.typolink.forceAbsoluteUrl.scheme = https
我测试了一切,现在这里有一个完整的“绝对URL网站”