3

I need something like this:

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

but in inline syntax. Is this possible? Thanks!

2 Answers 2

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)}

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/

1
  • 1
    I've added a new link to my answer. Sep 27, 2022 at 21:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.