Documentation · ViewHelper reference

XSD schema file | vhs master

Iterator / LoopViewHelper

Repeats rendering of children $count times while updating $iteration. /

  • Tag usage example

    <v:iterator.loop iteration="NULL" count="123" minimum="123" maximum="123">
    	<!-- tag content - may be ignored! -->
    </v:iterator.loop>
  • Inline usage example

    {v:iterator.loop(iteration: 'NULL', count: 123, minimum: 123, maximum: 123)}

Arguments

Argument Description Type
count

Number of times to render child content

integer
iteration

Variable name to insert result into, suppresses output

string
maximum

Maxiumum number of loops before stopping

integer
minimum

Minimum number of loops before stopping

integer
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 2901aa81ebe5fae84840673bba23f83d9ffa54ad
Author: Danilo Bürger <*****@hmspl.de>
Date:   Wed Oct 16 13:43:02 2013 +0200

    [FEATURE] Added v:iterator.for, improved v:iterator.loop

commit 0a0e3b1c04372bc96b195d2410cdb9df49dbfaad
Author: Danilo Bürger <*****@hmspl.de>
Date:   Sun Oct 27 20:06:06 2013 +0100

    [BUGFIX] Remove LF from iterators

commit 3abbb9ab677027c2e312e9734e72f2aca096adc4
Author: Danilo Bürger <*****@hmspl.de>
Date:   Sat Nov 16 23:02:26 2013 +0100

    [BUGFIX] Fixed iteration array

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

    [TASK] Happy new year!

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