[TYPO3-mvc] Combination of groupedBy and count viewHelper

Stefan Frömken firma at sfroemken.de
Mon Dec 6 15:57:33 CET 2010


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


More information about the TYPO3-project-typo3v4mvc mailing list