RayYates
08-25-08, 04:18 AM
I know this is a complex but please assist.
What data structure is foreach looking for AND how do I get my module to add its data to the l.settings variable structure?
This is the basic form for a foreach loop.
<mvt:foreach iterator="product" array="products">
&mvt:product:name;<br>
</mvt:foreach>
This coresponds to looping through the values in l.settings:products[n]:name
My module returns values from a complex query from ComponentModule_Render_Start()
However, when I add my values to the l.settings data structure as l.settings:mydata[n]:name, they don't work and instead show up as l.settings:modulecode:mydata[n]:name or l.settings:modulecode[n]:name.
What data structure is foreach looking for AND how do I get my module to add its data to the l.settings variable structure?
This is the basic form for a foreach loop.
<mvt:foreach iterator="product" array="products">
&mvt:product:name;<br>
</mvt:foreach>
This coresponds to looping through the values in l.settings:products[n]:name
My module returns values from a complex query from ComponentModule_Render_Start()
However, when I add my values to the l.settings data structure as l.settings:mydata[n]:name, they don't work and instead show up as l.settings:modulecode:mydata[n]:name or l.settings:modulecode[n]:name.