Skip to content
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

Code for pagination #68

Open
Manaus opened this issue Jan 1, 2023 · 1 comment
Open

Code for pagination #68

Manaus opened this issue Jan 1, 2023 · 1 comment

Comments

@Manaus
Copy link

Manaus commented Jan 1, 2023

I'd like to paginate results. While I see a pagination node in the data, I cannot figure out how to write a chunk of code for enabling this feature. Any source?

Thanks

@animaux
Copy link
Contributor

animaux commented Jan 1, 2023

I think the key is to include something like <input type="hidden" name="per-page" value="10" /> in your search form in order to not have all results on a single page. Then you can use a typical pagination template, like with a regular datasource.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants