Attention
TYPO3 v11 has reached end-of-life as of October 31th 2024 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.
Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v11 here: TYPO3 ELTS.
Or ViewHelper <f:or>
If content is empty use alternative text
Source code
Go to the source code of this ViewHelper: OrViewHelper.php (GitHub).
Arguments
The following arguments are available for <f:
:
content
-
- Type
- mixed
Content to check if empty
alternative
-
- Type
- mixed
Alternative if content is empty
arguments
-
- Type
- mixed
Arguments to be replaced in the resulting string, using sprintf