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:or>:

Name Type Default
mixed
mixed
mixed
content
Type
mixed
Required

true

Content to check if empty

alternative
Type
mixed
Required

true

Alternative if content is empty

arguments
Type
mixed
Required

true

Arguments to be replaced in the resulting string, using sprintf