How can I use data coming from a custom ViewHelper in my Fluid Template.
I have made a custom ViewHelper that is returning data like this:
{cars: { 0: {car:'VW Golf V TDi 140 GT Sport DSG Van',price:'144900'}, 1: {car:'Citroën C5 HDi Elegance',price:'168900'}, 2: {car:'Seat Leon TSi Stylance',price:'173000'} }} And tried the code below, but it doesn't print anything inf the f:for loop. In FLuid I would like to run through this with a f:for loop. But how do I get my data into the f:for syntax?
<f:alias map="<car:CarInfo length="5" />"> <table cellpadding="5" cellspacing="0" border="2"> <f:for each="{cars}" as="car"> <tr> <td>{car.car}</td> <td>{car.price}</td> </tr> </f:for> </table> </f:alias>