Jason Huck Posted January 7, 2020 Share Posted January 7, 2020 I'm customizing some search results and have to explicitly reset the values for the start and total on each page. I've got it all working except I'm not sure how to detect when I'm on e.g. /page2/. I tried $input->urlSegment1, but it's empty. I'm sure there's an easy way to grab the current page value when pagination is in use? Thanks! Link to comment Share on other sites More sharing options...
louisstephens Posted January 7, 2020 Share Posted January 7, 2020 There is this method $input->PageNum https://cheatsheet.processwire.com/input/properties-and-methods/input-pagenum/ https://processwire.com/api/ref/wire-input/page-num/ 1 Link to comment Share on other sites More sharing options...
Jason Huck Posted January 7, 2020 Author Share Posted January 7, 2020 Perfect! Exactly what I needed. Thank you! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now