frankban / django-endless-pagination

This project is deprecated: please use https://github.com/shtalinberg/django-el-pagination
MIT License
251 stars 108 forks source link

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

Open jpatel3 opened 9 years ago

jpatel3 commented 9 years ago

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?

sheregeda commented 8 years ago

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

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