Skip to content

Looking to use pagy with Algolia, starting the page count at 0 #744

Answered by ddnexus
misham asked this question in Q&A
Discussion options

You must be logged in to vote

AFAIK the pagination business is conventionally all about pages, not page-offset, so no, there's no native support for that.

It looks like you mean that the API provides a page-offset, not a page number.... interestingly there are a few widgets for pagination that actually show the one-based page number in the UI. (https://www.algolia.com/developers/code-exchange/pagination-widget/)...

Maybe that's the official way of doing it? Maybe a pagy extra would be simple to write.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@misham
Comment options

@ddnexus
Comment options

Answer selected by misham
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants