[英]TYPO3 fluid: is it possible to write f:link.typolink inline?
I need something like this: 我需要这样的东西:
<f:link.typolink parameter="{link}">
Linktext
</f:link.typolink>
but in inline syntax. 但采用内联语法。 Is this possible?
这可能吗? Thanks!
谢谢!
if you have your linktext in a variable, you can write: 如果您的链接文本包含在变量中,则可以编写:
{linktext -> f:link.typolink(parameter: '1')}
if you want to set your linktext inside your fluidtemplate, you can: 如果要在FluidTemplate内设置链接文本,则可以:
{f:variable(name:'linktext', value:'My Linktext')}
{linktext -> f:link.typolink(parameter: '1')}
parameter: 1
is a link to uid 1, parameter: 1
是指向uid 1的链接,
in your example you can use the {link}
variable without the curly braces, eg: 在您的示例中,可以使用不带花括号的
{link}
变量,例如:
{f:link.typolink(parameter: link)}
There is an online converter to convert Fluid tags into inline notation: 有一个在线转换器,可将Fluid标签转换为嵌入式符号:
http://www.fluid-converter.com/ http://www.fluid-converter.com/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.