首页 > 解决方案 > tx_news n:link 不想用 config.absPrefix 建立绝对链接

问题描述

在 tx_news 模板中,我们似乎可以使用并获取<n:link 以下内容<f:link.typolinkconfiguration="{forceAbsoluteUrl: 1}"

<h3>
  <n:link configuration="{forceAbsoluteUrl: 1}" newsItem="{newsItem}" settings="{settings}" title="{newsItem.title}">
    <span itemprop="headline">{newsItem.title}</span>
  </n:link>
</h3>

对于构建绝对链接 TYPO3 使用config.absPrefix但在 TYPO3 9.5.3 中无效。我可以在 Site 中更改此设置Configuration -> Entry Point。但不是更多的打字稿。

我已经检查过了。此排版设置在 TYPO3 9.5.3 中仍然可用。但看起来只适用于资产(标题中的脚本/样式)而不适用于链接?我可以解决吗?

最后,我需要来自 tx_news 或其他打字稿的绝对链接, config.absPrefix但不需要 config.yaml

标签: tx-newstypo3-9.x

解决方案


尝试使用config.absRefPrefix而不是config.absPrefix


推荐阅读