Commit d3371f04 authored by Claus Due's avatar Claus Due Committed by Georg Ringer
Browse files

[FEATURE] Add new ViewHelper f:variable via Fluid 2.2.0

A new Fluid ViewHelper, `f:variable`, has become available
in TYPO3 after raising the minimum required version of the
Fluid engine to 2.2.0.

Change-Id: I4f42030ef586e8d9a3d40c54c64137eb1969384d
Resolves: #79402
Releases: master

Tested-by: default avatarTYPO3com <>
Reviewed-by: default avatarThomas Hohn <>
Tested-by: default avatarThomas Hohn <>
Reviewed-by: Georg Ringer's avatarGeorg Ringer <>
Tested-by: Georg Ringer's avatarGeorg Ringer <>
parent 37b7f532
.. include:: ../../Includes.txt
Feature: #79402 - New Fluid ViewHelper f:variable added
See :issue:`79402`
A new ViewHelper ``f:variable`` has been added in Fluid 2.2.0 which is now minimum required dependency for TYPO3.
The ViewHelper allows variables to be assigned in the template:
.. code-block:: html
Assign a variable
<f:variable name="myvariable">My variable's content</f:variable>
<f:variable name="myvariable" value="My variable's content"/>
{f:variable(name: 'myvariable', value: 'My variable\'s content')}
{myoriginalvariable -> f:variable.set(name: 'mynewvariable')}
The new ViewHelper is now available in any and all Fluid templates being rendered in TYPO3.
.. index:: Fluid
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment