Author Topic

Tobias Persson

Monday 27 December 2004 7:14:50 am

Comment17182

I combined your examples above. And some math functions.
I think this might solve your problem.

{let loops=6 countitems=0}

<table>
{section  loop=fetch('content','list', hash('parent_node_id',71, limit, 6))}
{set countitems=fetch('content','list_count', hash('parent_node_id',71))}
<tr>
<td bgcolor=red> {$:item.name} </td>
</tr>
{/section}
</table>

{set loops=$loops|sub($countitems)}

{section $loops|gt(0)}
<table>
{section name=loop loop=$loops}
<tr>
<td bgcolor= red> 
try it even without fetching to any data from the content
</td>
</tr>
{/section}
</table>
{/section}

{/let}