[Flow] Count specific value

Patric Eckhart mail at patriceckhart.com
Fri May 8 07:51:16 CEST 2015


Hey guys,

How can I count the number of {orderPosition.manufacturer} in the following Fluid Template?

The result should look like this:
5 x {orderPosition.manufacturer}
2 x {orderPosition.manufacturer}

Can I solve this in the fluid template?

<f:for each="{orderPositions}" as="orderPosition">
                                                <f:if condition="{orderPosition.cond}==1">
                                                    {orderPosition.manufacturer} {orderPosition.name}<br />
                                                    <f:count subject="{orderPositions}" />
                                                </f:if>
                                            </f:for>


More information about the Flow mailing list