Feature #4460

Add GroupedForViewHelper

Added by Bastian Waidelich over 12 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
Should have
Category:
ViewHelpers
Target version:
-
Start date:
2009-09-04
Due date:
% Done:

100%

Estimated time:
Has patch:

Description

Provide a view helper that allows to iterate through values and group the result by a given key.
This might look like:

<f:groupedFor each="{fruits}" as="fruitsOfThisColor" groupBy="color" groupKey="theColor">
    <h3>{theColor}:</h3>
    <f:for each="{fruitsOfThisColor}" as="fruit">
        {fruit.name}<br />
    </f:for>
</f:groupedFor>

Patch follows.

#1

Updated by Sebastian Kurfuerst over 12 years ago

  • Status changed from New to Accepted
#2

Updated by Bastian Waidelich over 12 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Applied in changeset r3190.

Also available in: Atom PDF