[TYPO3-mvc] Cannot cast object oftype"Tx_Extbase_Persistence_QueryResult" to string.
Franz Koch
typo3.RemoveForMessage at elements-net.de
Tue Jun 14 13:46:39 CEST 2011
Hey,
> <f:if condition="{pagination}==1">
> <enzteaserlist:widget.paginate objects="{teaseritems}" as="teasers"
> configuration="{itemsPerPage: itemsperpage,insertAbove:0,insertBelow:1}">
> </f:if>
> <f:for each="{teasers}" as="teaseritem">
you know that your template will fail rendering if you disable the
pagination? Reason is that you're iterating over {teasers} which is only
set if you use the pagination widget. So if you like to have a fallback
for this you would need a "f:else" section where you use <f:alias
map="{teasers: teaseritems}">.
--
kind regards,
Franz Koch
More information about the TYPO3-project-typo3v4mvc
mailing list