Translations
Info
All page names need to be in English.
en da  de  fr  it  ja  km  nl  ru  zh

Fluid Inline Notation

From TYPO3Wiki
Jump to: navigation, search


For every view helper you have the choice of using the tag based syntax or the so called inline notation.

Here a list of view helper examples and the corresponding inline notation:

Syntax example Tag notation Inline notation
Variable as parameter
<f:foo argument="{someVariable}" />
{f:foo(argument: someVariable)}
Variable as tag content
<f:foo>{someVariable}</f:foo>
{someVariable -> f:foo()}
String
<f:foo argument="someString" />
{f:foo(argument: 'someString')}

ViewHelper as array value

<f:translate key="{msg_id}" arguments="{1: '{f:format.date(date: record.validend, format: \'d.m.Y H:i:s\')}'}" />

Things that do not work

No equivalents

There is no equivalent inline notation for the following syntax:

<f:foo>someString</f:foo>

This does not work:

{'foo' -> f:foo()}


General info

When to use which syntax depends on your taste and the use case.

Usually you want to use the tag syntax for view helpers that render as html tag (e.g. <f:image />) and the inline notation to render a variable/string in a special format. Of course you can also nest view helpers (see FAQ).