Jump to content

Pager (Pagination) Navigation: Multiple values for whitelist


tires
 Share

Recommended Posts

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!

Link to comment
Share on other sites

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"				    
));

 

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...