[TYPO3-mvc] fluid javascript array not rendered

Bas van der Togt b.vandertogt at profinit.com
Sat Mar 23 15:16:55 CET 2013


Hello,

How can i get this working:	

<script type="text/javascript">
	//<![CDATA[
	var arrHotels = [];
	<f:for each="{hotels}" as="hotel">
		arrHotels.push({
			title: '{hotel.title}',
			latlong: '{hotel.latlong}'
		});
	</f:for>
	//]]>
</script>

For now the for loop is not rendered.

Kind regards,
Bas


More information about the TYPO3-project-typo3v4mvc mailing list