[TYPO3-mvc] #1224485398: Templating tags not properly nested.

Christian Clemens | webzigartig clemens at webzigartig.de
Fri Apr 15 07:21:59 CEST 2011


Hello List,

I’m new to Extbase/Fluid and I’m fighting with the following problem: the
following code out of the book “TYPO3-Extensions mit Extbase & Fluid” from
Jochen Rau und Sebastian Kurfürst always results in an error message.

Here the code (my whole template) - the code of the book starts at <ul> and
ends at </ul>:
<f:layout name="Default" />

<f:section name="main">
<h1>Listing for Category KIKI</h1>

<f:flashMessages />

<ul>
	<f:for each="{0:1,1:2,2:3,3:4}" as "foo">
		<f:cycle values="{0:'odd', 1:'even'}" as "zebraClass">
			<li class="{zebraClass}">{foo}</li>
		</f:cycle>
	</f:for>
</ul>


</f:section>

Here the error message:
#1224485398: Templating tags not properly nested. Expected:
Tx_Fluid_ViewHelpers_SectionViewHelper; Actual:
Tx_Fluid_ViewHelpers_CycleViewHelper

Why are the tags not properly nested? 

I was first confronted with this error while I was trying to nest a <f:for
each...> into another <f:for each...>. 

Kind regards

Christian




More information about the TYPO3-project-typo3v4mvc mailing list