django-endless-pagination icon indicating copy to clipboard operation
django-endless-pagination copied to clipboard

Is there any way to get counter on endless pagination items?

Open jpatel3 opened this issue 9 years ago • 1 comments

I am using it to display a grid (div based) to display list of items with endless pagination. I tried to use forloop.counter however, every time it gets new set of items in queryset it starts the counter from 1 on the subsequent folds. Is there any way to get running counter?

jpatel3 avatar Sep 01 '15 17:09 jpatel3

This call inserts in the template context a pages variable {% get_pages %}

{{forloop.counter0|add:pages.current_start_index}}

sheregeda avatar Mar 15 '16 09:03 sheregeda