Hi
I have a question for proper coding.
I want to fill in a 2 columns Table with a channel entry.
So I wrote something like this:
<table>
<tbody>
<tr>
{exp:channel:entries channel="kunden" orderby=”entry_date”}
<td><a href="http://{link}class=kunden">{title}</a></td>
{/exp:channel:entries}
</tr>
</tbody>
</table>But this fills in just more and more columns so the whole table ends up with 10 columns and one row.
Now my question is how to write this in a proper way so there are just 2 columns and everything lines up in rows.
My only Idea was to populate the td tag and ad offset to the exp:entry but that looks quite silly to me:
<table>
<tbody>
<tr>
{exp:channel:entries channel="kunden" orderby=”entry_date” limit="2"}
<td><a href="http://{link}class=kunden">{title}</a></td>
{/exp:channel:entries}
</tr>
<tr>
{exp:channel:entries channel="kunden" orderby=”entry_date” limit="2" offset="4"}
<td><a href="http://{link}class=kunden">{title}</a></td>
{/exp:channel:entries}
</tr>
<tr>
{exp:channel:entries channel="kunden" orderby=”entry_date” limit="2" offset="6"}
<td><a href="http://{link}class=kunden">{title}</a></td>
{/exp:channel:entries}
</tr>
<tr>
{exp:channel:entries channel="kunden" orderby=”entry_date” limit="2" offset="8"}
<td><a href="http://{link}class=kunden">{title}</a></td>
{/exp:channel:entries}
</tr>
<tr>
{exp:channel:entries channel="kunden" orderby=”entry_date” limit="2" offset="10"}
<td><a href="http://{link}class=kunden">{title}</a></td>
{/exp:channel:entries}
</tr>
<tr>
{exp:channel:entries channel="kunden" orderby=”entry_date” limit="2" offset="12"}
<td><a href="http://{link}class=kunden">{title}</a></td>
{/exp:channel:entries}
</tr>
</tbody>Is there a better way?
thank you