Documentation · ViewHelper reference

XSD schema file | vhs master

Iterator / ExplodeViewHelper

Explode ViewHelper

Explodes a string by $glue. /

  • Tag usage example

    <v:iterator.explode content="NULL" glue="','" as="NULL">
    	<!-- tag content - may be ignored! -->
    </v:iterator.explode>
  • Inline usage example

    {v:iterator.explode(content: 'NULL', glue: '','', as: 'NULL')}

Arguments

Argument Description Type
as

Template variable name to assign; if not specified the ViewHelper returns the variable instead.

string
content

String to be exploded by glue

string
glue

String used as glue in the string to be exploded. Use glue value of "constant:NAMEOFCONSTANT" (fx "constant:LF" for linefeed as glue)

string
Required attribute

Revision history

commit 542b285a13c3bae5b726f7ce50f8324457631c51
Author: Claus Due <*****@wildside.dk>
Date:   Sat Nov 3 16:27:35 2012 +0100

    [FEATURE] Iterator ViewHelpers
    
    Explode, Implode, First, Last, IndexOf, Next, Previous, Loop and Sort
    ViewHelpers.

commit ac5839b8def08676003775d495e0a31e362f7662
Author: Claus Due <*****@namelesscoder.net>
Date:   Wed Nov 6 03:38:41 2013 +0100

    [TASK] Test cleanups and improvements

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

    [TASK] Happy new year!

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

    [TASK] Migrate to using namespace core class names

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

    [TASK] Switch to namespaces

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

    [TASK] Reference Copyright to license.md file