swampdragon icon indicating copy to clipboard operation
swampdragon copied to clipboard

Get additional information for pagination

Open jmetz opened this issue 9 years ago • 2 comments

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?

jmetz avatar Aug 04 '15 13:08 jmetz

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?

lorddaren avatar Aug 11 '15 15:08 lorddaren

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.

jmetz avatar Aug 11 '15 17:08 jmetz