[TYPO3-mvc] Combination of groupedBy and count viewHelper

Stefan Frömken firma at sfroemken.de
Mon Dec 6 16:07:09 CET 2010


Am 06.12.2010 15:57, schrieb Stefan Frömken:
> Hello,
>
> I have a problem when I try to combine groupedBy and count vieHelper:
>
> <f:groupedFor each="{properties}" as="allPropertiesGroupedByCategory"
> groupBy="category" groupKey="category">
> <tr>
> <td rowspan="{category -> f:count()}">{category.category}</td>
> </tr>
> </f:groupedBy>
>
> This script results in following output:
>
> <td rowspan="CountViewHelper only supports arrays and objects
> implementing Countable interface. Given: "
> tx_ebsink_domain_model_category="">Surface</td>
>
> So...did you have any idea?!?!
>
> Stefan
Ahh...this works much better:

<td rowspan="{allPropertiesGroupedByCategory -> 
f:count()}">{category.category}</td>



More information about the TYPO3-project-typo3v4mvc mailing list