Currently the panel is rendered and only then is products added to it. You need to swap the order around. First add, then render.

Basically your page template should contain only: $panel

Move the page template code into the panel template, and lastly add the products to the panel inside the Java Page. This means you populate the panel with products before rendering it.

Bob

On 2011/08/22 20:49 PM, Gilberto wrote:
Thinking a little more about it[1]:
<quote>
<table>
     #foreach( $p in $products )
     <tr>
         <td>$productPanel($p)</td>
         <td class="categories">
             #foreach( $c in $p.categories )
             #if ($foreach.count>1),#end $c.name #end
         </td>
     </tr>
     #end
</table>
</quote>

I guess it can't work because the panel component can't be used in the
loop. I would need a repeatable panel in this case, right?

Regards,

Gilberto

[1] http://dl.dropbox.com/u/9093640/clickapp.zip


Reply via email to