We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Accessing Query Strings?

Daniel Saksa April 4, 2019 by Daniel Saksa

I have an interesting use case where on an index page of events, I have some events that are on-going that day, and then the rest are in the past. They're broken into two separate sections. The latter has 1000+ so it's paginated. However the former is not and only has a few at most and is not paginated. I'd like to not display the on-going section when the past events are being paginated through. I didn't see anyway in the docs to access query strings in the url. Is this possible? Or would you suggest an alternate way to accomplish this?

The only way I can think right now is to do a entries call for the past ones to check if the current page of pagination is greater than 1. Seems like a lot of unnecessary work.

Answered by Erin Dalzell!
>>>>>>> Answered <<<<<<<
2 Replies