3

I need something like this:

<f:link.typolink parameter="{link}">
     Linktext
</f:link.typolink>

but in inline syntax. Is this possible? Thanks!

Peter Kraume
  • 3,577
  • 2
  • 21
  • 39
lisardo
  • 1,322
  • 16
  • 31

2 Answers2

11

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:

{f:variable(name:'linktext', value:'My Linktext')}

{linktext -> f:link.typolink(parameter: '1')}

parameter: 1 is a link to uid 1,
in your example you can use the {link} variable without the curly braces, e.g.:
{f:link.typolink(parameter: link)}

Naderio
  • 1,306
  • 11
  • 26
3

There is an online converter to convert Fluid tags into inline notation:

http://www.fluid-converter.com/

Update 27.09.2022: The above mentioned URL is not valid anymore.
But there is a new tool: https://fluid-to-inline-converter.com/

Peter Kraume
  • 3,577
  • 2
  • 21
  • 39