Hello everybody,
I'm still quite new to Silverstripe - But am quite enthusiastic about it.
I have one question. Imagine i have something similar to the newssection as created in the tutorial, but now I want to show it in a table.
So instead of all items being iterated, and show below each other, i want to create table cells. And that's easy, but i can't find how to automatically insert a new table row after let's say each 3 cells.
Below I have the control code from the template. And this is working, except I need to generate every 3 <td></td> and additional </tr><tr>.
<table>
<tr>
<% control Children %>
<td>
<p>$Pos - $Title</p>
<p>$Iterator</p>
<embed src="$URL" type="application/x-shockwave-flash" width="200" height="173" allowFullScreen="true"></embed><br />
<% if NewRow %>
<p>tsja - en nu is newrow true</p>
<% else %>
<p>tsja - en nu is newrow false</p>
<% end_if %>
</td>
<% end_control %>
</tr>
</table>
hope someone can give me some help
Thanks
Bas