简体   繁体   English

ViewHelper Uri Fluid无法渲染链接

[英]ViewHelper Uri Fluid does not render link

I have the following code within my Partial: 我的Partial中包含以下代码:

<f:if condition="{pager.currentPage} != {pager.nextPage}">
  <v:page.header>
    <link rel="next" href="{f:uri.page pageUid=\'10\'}" />
  </v:page.header>
</f:if>

I expected that this would add a header <link> tag with an actual link in the href part of the tag. 我希望这会在标签的href部分中添加带有实际链接的标头<link>标签。

However, i only get the following within my <head> tag: 但是,我只能在<head>标记中获得以下内容:

<link rel="next" href="{f:uri.page pageUid=\'10\'}">

So i assume that the ViewHelper isn`t called. 所以我假设没有调用ViewHelper。 The if section is evaluated correctly, so i have access to fluid. 如果正确评估了if部分,那么我可以接触流体。

This is just a minimal failing example, i stumbled upon rendering a more complex f:uri.action call 这只是一个最小的失败示例,我偶然发现了一个更复杂的f:uri.action调用

尝试{f:uri.page(pageUid: 10)}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM