Documentation · ViewHelper reference

XSD schema file | vhs master


If content is empty use alternative text (can also be LLL:labelname shortcut or LLL:EXT: file paths). /

  • Tag usage example

    <v:or content="[anySimpleType]" alternative="[mixed]" arguments="{foo: 'bar'}" extensionName="NULL">
    	<!-- tag content - may be ignored! -->
  • Inline usage example

    {v:or(content: [anySimpleType], alternative: [mixed], arguments: {foo: 'bar'}, extensionName: 'NULL')}


Argument Description Type

Alternative if content is empty, can use LLL: shortcut


Arguments to be replaced in the resulting string

content anySimpleType

UpperCamelCase extension name without vendor prefix

Required attribute

Revision history

commit d1323db215447be466b532ba716860359861a058
Author: Danilo Bürger <*****>
Date:   Mon Oct 28 01:59:06 2013 +0100

    [FEATURE] Added or view helper

commit da31bad1d9bb058c072ddb5591e8ed907a1ae8e1
Author: Claus Due <*****>
Date:   Tue Dec 31 23:08:37 2013 +0100

    [TASK] Happy new year!

commit d2e531da034976e6db1478eef5a8478595fd16fe
Author: Claus Due <*****>
Date:   Sun Jan 5 00:45:10 2014 +0100

    [TASK] Migrate to using namespace core class names

commit da7677bc74f14e9a9300e4ba4487e52c3cb97642
Author: Claus Due <*****>
Date:   Sun Apr 20 01:13:33 2014 +0200

    [TASK] Switch to namespaces

commit 12ff0ddfb8d36c51f2d3befde7ae812177c80d5d
Author: Xaver Maierhofer <*****>
Date:   Wed Jun 11 00:01:47 2014 +0200

    [TASK] CGL remove use leading backslash
    PHP Docs
    Note that for namespaced names (fully qualified namespace names containing namespace separator, such as Foo\Bar as opposed to global names that do not, such as FooBar),
    the leading backslash is unnecessary and not recommended, as import names must be fully qualified, and are not processed relative to the current namespace.

commit 194914d62147f30cf11c178c4ef5a93190d888de
Author: Claus Due <*****>
Date:   Thu Oct 16 23:08:54 2014 +0200

    [BUGFIX] Fix LLL support and shorthand mode of Or ViewHelper

commit d630768634c7d591cf9e2e34afa2d0790e84e638
Author: Björn Fromme <*****>
Date:   Thu Nov 6 22:07:27 2014 +0100

    [BUGFIX] Ensure NULL or not empty array

commit 8bb2fc5ee124ba19b0a0ab8e061c9a153fc4651f
Author: Xaver Maierhofer <*****>
Date:   Sun Jan 18 17:56:13 2015 +0100

    [TASK] Reference Copyright to file