Forums / Setup & design / loop the object / Comment17188
Tobias Persson
Tuesday 28 December 2004 5:21:40 am
Oki.
{let loops=6 countitems=0 p_node_id=72} <table> {section loop=fetch('content','list', hash('parent_node_id',$p_node_id, limit, $loops))} {set countitems=fetch('content','list_count', hash('parent_node_id',$p_node_id))} <tr> <td bgcolor=red> {$:item.name} </td> </tr> {/section} {set loops=$loops|sub($countitems)} {section show=$loops|gt(0)} {section name=loop loop=$loops} <tr> <td bgcolor= red> try it even without fetching to any data from the content </td> </tr> {/section} {/section} </table> {/let}
I have inserted the code inte 3.5 EZ demo at devel.Exponential.no
You can see it at the top, right now (will be deleted when ez reset the demo) at: http://devel.Exponential.no/products/black_box
and the template is over at:http://admindevel.Exponential.no/visual/templateedit/design/news/override/templates/full/product.tpl