Re: Looping through a specific number of times with a for loop

2008-06-19 Thread Catalyst
On Jun 19, 11:54 am, Tim Chase <[EMAIL PROTECTED]> wrote: > >   For example at the template level... > > >     {% for news in latest_news_list last 10 %} > > >   I'm hoping this would grab the latest 10 objects in the > > latest_news_list. Does anyone know the best way to do this, or have > > so

Re: Looping through a specific number of times with a for loop

2008-06-19 Thread Tim Chase
> For example at the template level... > > {% for news in latest_news_list last 10 %} > > I'm hoping this would grab the latest 10 objects in the > latest_news_list. Does anyone know the best way to do this, or have > some examples set up I could read over? Looks like you want the slice

Looping through a specific number of times with a for loop

2008-06-19 Thread Catalyst
I was trying to figure out the best way to loop through a specific number of objects in a for loop. For example at the template level... {% for news in latest_news_list last 10 %} I'm hoping this would grab the latest 10 objects in the latest_news_list. Does anyone know the best way