Trying to show a list of news entries in a jQuery carousel. Each set has 4 entries. I’m using offset for each additional set. The problem with this is that it is limited by the number of sets hardcoded into the embed code. Is there a more elegant way to show multiple loops instead of hardcoding each loop? It would be great to show the number of sets based on how many entries existed.
<!-- Set 1 -->
<li>
<table><tr>
{exp:channel:entries limit="4" channel="news" dynamic="off" }
<td>
<h4><a href="http://{title_permalink=news/article}">{title}</a></h4>
<p> {news-summary}<br />
</td><br />
{/exp:channel:entries}<br />
</tr></table><br />
</li></p>
<p><!-- Set 2 --><br />
<li><br />
<table><tr><br />
{exp:channel:entries limit="4" offset="4" channel="news" dynamic="off" }<br />
<td><br />
</p><h4><a href="http://{title_permalink=news/article}">{title}</a></h4>
<p> {news-summary}<br />
</td><br />
{/exp:channel:entries}<br />
</tr></table><br />
</li>
Any ideas would be most welcome! Thanks.