tx-news - tx_news n:link 不想用 config.absPrefix 建立绝对链接
问题描述
在 tx_news 模板中,我们似乎可以使用并获取<n:link
以下内容<f:link.typolink
configuration="{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
解决方案
尝试使用config.absRefPrefix
而不是config.absPrefix
推荐阅读
- scala - 类路径中缺少“type scala.collection.generic.GenericTraversableTemplate”
- html - 如何根据包含 Google 表格数据的模板获取 HTML 代码
- intellij-idea - Intellij - 更改 TestNG 运行配置的默认类路径
- reactjs - 在 reactJS 中声明状态
- c# - 为什么在尝试保存变量值数据并加载它们时出现异常?
- c# - 无法在文件后面的代码中访问标签控件(放置在 ItemTemplate 中)
- html - justify-content 不适用于自动边距
- c - 为什么我不能使用“scanf_s”同时读取一个字符和一个数字?
- docker - 用于 ssh 自动启动的 dockerfile ssh 僵尸进程
- css - 如何将 Bootstrap 列溢出/扩展/流血到视口的边缘?