Custom pagination

Is there a way to customize the pagination? We’re trying to add a piece above the events that says “Showing X of Y events”. I thought leveraging the pagination would be the easiest way to do that, since it already has the info, but it seems the only options for it are “show more” and “next/previous”, and no options for positioning. Is there a way to control pagination through the widget’s template? Are any of the variables it uses exposed?

Hi there,

There’s not currently a way to customize the pagination of a widget in the way you’re describing. There is a {total} format variable you can use in the widget wrapper, though, so if you wanted to say “Showing Y events” you could do something like this:

image

Otherwise with custom JS you could maybe do something closer to what you’re after. The LiveWhale widget layer does send “paginate.lw” triggers to the body element every time pagination is updated, so if you wanted to use custom JS to count the visible elements and display them, that’s a possibility. (e.g., $('body').on('paginate.lw', function(e, el){ ... } )

Hope this helps as a starting point!

I will try this, thank you!