Reference: ViewHelpers
EXT:headless registers the Fluid namespace headless
(Configuration/), so these ViewHelpers work in every
template without an xmlns declaration. They serve JSON Fluid templates: the
felogin and form templates shipped with the extension and JSON templates for
third-party plugins (External plugins (EXT:news etc.)).
| ViewHelper | Purpose |
|---|---|
headless: | Returns a URL from the current site configuration.
return is frontend, proxy
(frontend) or storage
(frontend); any other value returns null. |
headless: | Replacement for f: in felogin templates; takes
the arguments of f:. Instead of a <form> tag
it returns a JSON list: the child content (the field
definitions, passed in already decoded) followed by
the hidden fields {name, type: hidden, value} that
Extbase and the request token need (__,
__, and __ when the
request argument is set). action,
method and title of the shipped form come from
the template
(Resources/). |
headless: | Registers a field name for the __
token without rendering an input, for fields the
frontend renders itself. Arguments: name, value,
property, checked, multiple. |
headless: | Decodes JSON (argument json or the tag content) into
an array. Invalid JSON returns null; with
$GLOBALS enabled
the Json is thrown instead. |
headless: | Splits content (or the tag content) by glue
(default ,; constant: for a line feed) and
returns the array, e.g.
{item..
as assigns no variable: combined with content it
makes the ViewHelper return the trimmed, unsplit
string; otherwise it is ignored. |