tires Posted July 14, 2021 Posted July 14, 2021 Hi! I want to use a few values for pagination whitelist, so i can submit all values to the next page. The code of the "next" link should look like this: https://mywebsite.com/search/page2?q=mysearchquery&tag=mytag&sort=desc How can i add this values to my the whitelist: $pagination = $mypage->renderPager(array( 'nextItemLabel' => "next", 'previousItemLabel' => "prev", $input->whitelist('q', $q) )); Thanks!
netcarver Posted July 14, 2021 Posted July 14, 2021 Have you tried setting the whitelist separately? $input->whitelist('q', $q); $pagination = $mypage->renderPager(array( 'nextItemLabel' => "next", 'previousItemLabel' => "prev" )); 1
tires Posted July 14, 2021 Author Posted July 14, 2021 Yes! That seems to work! Thank you once again! This is my code that works: $input->whitelist('q', $q); $input->whitelist('tag', $tag); $input->whitelist('sort', $sort); $pagination = $mypage->renderPager(array( 'nextItemLabel' => "next", 'previousItemLabel' => "prev" )); 1
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