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

Multi-tier pagination for 'dynamic page' output #427

Closed
danfascia opened this issue Feb 23, 2019 · 2 comments
Closed

Multi-tier pagination for 'dynamic page' output #427

danfascia opened this issue Feb 23, 2019 · 2 comments

Comments

@danfascia
Copy link

I've read several other issues discussing pagination and I'd like to see how a particular use case is served by current 11ty pagination features.

I'm using this method https://www.11ty.io/docs/quicktips/tag-pages/ to generate tag archive pages for my 'tutorials' collection but run into 2 issues I don't know how to solve:

  1. When I end up with a large number of result items for each tag how can I paginate the results. I don't know how to do it because I've already used paginate: to create the archive page.

I'm looking for example.com/tutorial/{{tag}}/ example.com/tutorial/{{tag}}/1..2..3 etc

  1. How could I make compound tag archives to return an archive page of 1 or more tags combined?

I'm aiming for example.com/tutorial/maths/difficult where 'maths' and 'difficult' are both separate tags

I guess I'm using this to replace what is traditionally a database query function. Pagination is a really exciting but quite confusing feature of eleventy.

@zachleat
Copy link
Member

zachleat commented Mar 8, 2019

I believe this is the exact thing that was discussed in #332? An example exists over there

@zachleat
Copy link
Member

Per our discussion on Twitter I’ve also opened #461 to discuss a better core feature for this use case.

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

No branches or pull requests

2 participants