Welcome Guest, Not a member yet? Register   Sign In
Fixed number of links in pagination
#4

[eluser]osci[/eluser]
pagination library, as you see uses num_links config. There is no other setting for this behaviour. Either you extend pagination class to have this feature or you convert your 'y' links to num_links like
Code:
$config['num_links'] = (int)(y/2);
If your 'y' is even then it should work as you want otherwise because y % 2 = 1 you would get one link less, so in such a case maybe extending could be your only solution.


Messages In This Thread
Fixed number of links in pagination - by El Forum - 07-05-2011, 04:39 AM
Fixed number of links in pagination - by El Forum - 07-05-2011, 08:06 PM
Fixed number of links in pagination - by El Forum - 07-06-2011, 12:57 AM
Fixed number of links in pagination - by El Forum - 07-06-2011, 02:33 AM
Fixed number of links in pagination - by El Forum - 07-06-2011, 04:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB