I have a template which outputs channel entries within a table structure, for example:
<table>
<thead>
<th>Title 1</th>
<th>Title 2</th>
</thead>
<tbody>
{exp:channel:entries channel="my_channel" paginate="bottom" limit="10"}
<tr>
<td>{field_1}</td>
<td>{field_2}</td>
</tr>
{/exp:channel:entries}
</tbody>
</table>Where should I then use the {paginate} tag pair? Obviously it needs to go within the channel entries loop, but it will either break the table structure (placed with the <tbody>) or will be repeated each row if I nest within a new <tr><td>.
I tried:
<table>
<thead>
<th>Title 1</th>
<th>Title 2</th>
</thead>
<tbody>
{exp:channel:entries channel="my_channel" paginate="bottom" limit="10"}
<tr>
<td>{field_1}</td>
<td>{field_2}</td>
</tr>
{/exp:channel:entries}
</tbody>
</table>
{exp:channel:entries channel="my_channel" paginate="bottom" limit="10"}
{paginate}...{/paginate}
{/exp:channel:entries}...but that did not work correctly.