diff --git a/Documentation/ApiOverview/Fluid/Syntax.rst b/Documentation/ApiOverview/Fluid/Syntax.rst index 8653d07690..b3a798ad6b 100644 --- a/Documentation/ApiOverview/Fluid/Syntax.rst +++ b/Documentation/ApiOverview/Fluid/Syntax.rst @@ -36,10 +36,10 @@ braces to output it. Reserved variables in Fluid --------------------------- -.. deprecated:: Fluid 2.15 / TYPO3 v12.4 +.. versionchanged:: Fluid 4.0 / TYPO3 v13.3 Assigning variables of names `true`, `false` or `null` will throw - an exception in Fluid v4. In preparation of this change, Fluid v2.15 logs a - deprecation level error message if any of these variable names are used. + an exception in Fluid v4. + See also :ref:`fluid-variables-reserved-migration`. The following variable names are reserved and may not be used: @@ -60,6 +60,46 @@ Migration .. literalinclude:: _Syntax/_MyTemplate.diff :caption: EXT:my_extension/Resources/Private/Templates/MyTemplate.html (diff) +.. _fluid-boolean: + +Boolean values +-------------- + +.. versionadded:: Fluid 4.0 / TYPO3 v13.3 + The boolean literals `{true}` and `{false}` have been introduced. + +You can use the boolean literals `{true}` and `{false}` to enable or disable +properties of tag-based ViewHelpers: + +.. code-block:: html + + + Result: + + + Result: + +Of course, any variable containing a boolean can be supplied as well: + +.. code-block:: html + + + +It is also possible to cast a string to a boolean + +.. code-block:: html + + + +For compatibility reasons empty strings still lead to the attribute +being omitted from the tag. + +.. code-block:: html + + + + Result: + .. _fluid-arrays: Arrays and objects