[TYPO3-english] TYPO3 6.2 & Fluid: condition for <f:renderChildren arguments="{contentArguments}" />

Bert Hiddink [BENDOO e-work solutions] hiddink at bendoo.nl
Wed Nov 12 10:50:16 CET 2014


Hello,

I am new to Fluid...

I have this within my viewhelpers-widget: <f:renderChildren 
arguments="{contentArguments}" />

How can I put a condition: if count(contentArguments) > 0 {
  "Do something"
} else {
  "No items"
}

Tried this but did not work:
<f:if condition="{news}">
	<f:then>
		<f:renderChildren arguments="{contentArguments}" />
	</f:then>
	<f:else>
		<div class="col-md-4 col-lg-4 col-sm-6 noproduct">
			<f:translate key="list_noitemfound" />
		</div>	
	</f:else>
</f:if>

And <f:count subject="{contentArguments}" /> always resulted in "1"?

Any suggestions?

Thanks in advance!

Regards,
Bert


More information about the TYPO3-english mailing list