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

Add pagination to tag subpages #438

Merged
merged 6 commits into from Sep 21, 2023

Conversation

Dak425
Copy link
Contributor

@Dak425 Dak425 commented Feb 25, 2021

Fixes #362


  • [ x ] I have signed the CLA

Mostly copied the logic for pagination from non tag collection
* Implements PrevPageURL and NextPageURL
* This allows the collection-tag template to get proper urls for
  paginating using tags.
Copy link
Member

@thebaer thebaer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for submitting this fix! Sorry it's taken so long to review this.

It looks like this does add most of what we need for pagination, but it also always shows the "Older" link on tag pages, even when there aren't more pages to go to. We'll need to fix that before merging.

@Dak425
Copy link
Contributor Author

Dak425 commented May 5, 2021

Thanks for submitting this fix! Sorry it's taken so long to review this.

It looks like this does add most of what we need for pagination, but it also always shows the "Older" link on tag pages, even when there aren't more pages to go to. We'll need to fix that before merging.

Ah gotcha missed that. Will fix soon

@thebaer
Copy link
Member

thebaer commented Sep 13, 2021

Hey @Dak425, any update on this?

@Dak425
Copy link
Contributor Author

Dak425 commented Sep 13, 2021 via email

@thebaer thebaer added this to the 0.14 milestone Jul 8, 2023
@thebaer
Copy link
Member

thebaer commented Jul 8, 2023

Patched this up, but only tested with MySQL and multi-user instance. Need to confirm it works with SQLite and single-user blogs, then we can merge.

@thebaer
Copy link
Member

thebaer commented Sep 21, 2023

Looks good! Merging now.

@thebaer thebaer merged commit dff01a6 into writefreely:develop Sep 21, 2023
lpar pushed a commit to postfreely/postfreely that referenced this pull request Sep 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Tag subpages do not paginate
2 participants