[TYPO3-english] DCE for each throws error

Tomas Havner tomas.havner at kansli.lth.se
Thu Apr 16 12:43:10 CEST 2015


Hi,

I have created a DCE that allows the users to create a slideshow. The 
user can create on or many slides. In the template section of the dce I 
have the following code:

...
<f:for each="{field.slide}" as="item" iteration="row">
			<div class="top-promo cycle-slide cycle-slide-active" style="z-index: 
99; position: absolute; top: 0px; left: 0px; visibility: visible; 
display: block; opacity: 1;">
				<img src="{item.image}" class="hide-xs" />
				<div class="top-promo-overlay">
...

It iterates a field (actually a section) named "slide". No matter if I 
have one or several slides, from time to time it throws the following error:

The argument "each" was registered with type "array", but is of type 
"string" in view helper "Tx_Fluid_ViewHelpers_ForViewHelper"

Any suggestions?

Tomas


More information about the TYPO3-english mailing list