-
-
Notifications
You must be signed in to change notification settings - Fork 546
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
buggy {{ collection:previous|next }} in collection with date and time enabled #11263
Comments
Screen.Recording.2024-12-16.at.23.35.55.mov |
Can you try sorting by the title as well? {{ collection:previous in="blog" as="posts" limit="1" sort="date:asc|title:asc" }} |
Nope, still buggy. (I've added the modification on the reproduction repo here if you want to try) |
Still needs more info? |
@duncanmcclean you've left the |
Nothing, all good. I just forgot to remove the label. 😄 |
oh ok no pb, thank you 😃 |
Bug description
The
{{ collection:previous}}
and{{ collection:next }}
don’t return the correct entry.It happens to collections with time and date enabled when entries have same date but different time.
How to reproduce
It's a really weird problem. My guess is a problem with collection sorting that is mixing date and title, but I'm not sure.
To make it easier to understand, I've created a reproduction repo : https://github.com/jimblue/statamic-buggy-nav
Logs
No response
Environment
Installation
Fresh statamic/statamic site via CLI
Additional details
No response
The text was updated successfully, but these errors were encountered: