hagsteel / swampdragon

swampdragon
Other
557 stars 73 forks source link

Get additional information for pagination #142

Open jmetz opened 9 years ago

jmetz commented 9 years ago

I just tested the pagination as documented here : http://swampdragon.net/documentation/pagination/ - what I couldn't figure out was how to set the total-items pagination attribute. How can we access this and assign it in controllers.js?

lorddaren commented 9 years ago

I am also looking to figure out how to paginate the data. I can get my results limited but don't know where to go from there. Have you figured anything out on this front?

jmetz commented 9 years ago

After looking through the code it doesn't look like this is stored; it is created when a Paginanator is instantiated, but the Paginator is then only used to return a Page. So I think for now a quick workaround is to add a pagecount template variable manually to each view function that needs pagination.