TYPO3扩展输出被TYPO3更改?
TYPO3似乎改变了前端扩展的输出 简单测试用例:TYPO3扩展输出被TYPO3更改?,typo3,Typo3,TYPO3似乎改变了前端扩展的输出 简单测试用例: function main($content, $conf) { $this->conf = $conf; $this->pi_setPiVarDefaults(); $this->pi_loadLL(); return '<a href="#test">test</a>'; } function main($content,$conf
function main($content, $conf)
{
$this->conf = $conf;
$this->pi_setPiVarDefaults();
$this->pi_loadLL();
return '<a href="#test">test</a>';
}
function main($content,$conf)
{
$this->conf=$conf;
$this->pi_setPiVarDefaults();
$this->pi_loadLL();
返回“”;
}
当我调用前端带有此分机的页面时,我得到:
<a href="pagename/?no_cache=1&action=show&id=3378#test">test</a>
基本上,它预先设置了我用来访问页面到锚链接的路径。
是什么导致了这种行为?RealURL
如何禁用它?您可能在TS模板(设置中)中启用了前缀:
config.prefixLocalAnchors = all
注意,如果您设置了config.baseURL=http://some.tld/
并启用RealURL
这是必需的,否则所有锚链接将重定向到主页:
http://some.tld/#test
而不是
http://some.tld/pagename/sub/other-sub#test
谢谢,就是这样:)我只是在我的扩展名所在的页面上创建了一个模板,上面写着:config.prefixLocalAnchors>你最好像
realurl
手册建议的那样使用config.absRefPrefix
。