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
{someVariable -> f:foo()}
<f:foo argument="someString" />
{f:foo(argument: 'someString')}

ViewHelper as array value

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

Special precautions for nested inline notation ViewHelpers

Additional nesting levels require more escaped quotation marks!

<f:example arguments="{1: '{ record.validend, format: \'{f:test(value:\\'nested level 2\\')}\')}'}" />

Things that do not work

No equivalents

There is no equivalent inline notation for the following syntax:


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