-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support perPage for pagination #1
Comments
@khalwat Just added support for that last weekend: Have you updated to v1.0.0? The latest release of Craftnet CP also includes a rough pagination implementation (https://github.com/studioespresso/craft3-craftnet-cp/releases/tag/1.2.0), though it'd be nice to be able to group things a bit better before paginating too... maybe that's a GraphQL API request to P&T! |
Right I know you support Might be best if it was done in a generalized way via: http://php.net/manual/en/function.http-build-query.php ...so we can pass in whatever query params we like, so as P&T adds them, the API doesn't need updating. Thoughts? |
Ah, got it. Read that too quickly. Yeah, happy to support it and it does make sense to generalize it. I probably won't have a chance to get to it this week. Happy to accept a pull request if you get around to it first. |
Unfortunately, until P&T's API supports sort and search, I can't really do what I want anyway: https://github.com/pixelandtonic/craftnet/issues/111 |
Or they could add a GraphQL endpoint, and then we could do whatever we wanted in terms of queries. |
It'd be nice in addition to being able to specify the
page
query string parameter, if we could also specify theperPage
as per: https://docs.api.craftcms.com/pagination.htmlThe text was updated successfully, but these errors were encountered: