Welcome Guest, Not a member yet? Register   Sign In
Pagination: Advanced library (SEO friendly first page, more tuning possibilities)
#3

[eluser]Unknown[/eluser]
[quote author="Johan André" date="1282606731"]You should extend (and override) the default pagination class and not put the file in the system-directory.
Create a MY_Pagination.php and put it in application/libraries instead. Updating the core will be so much easier. Smile

Seems like good functionality though...[/quote]


Thanks for helping me to overcome my laziness :-) I've "reworked" it so that it should be as you suggested (except of the name of the class).

+ I've added support for negative number in $config['uri_segment']. If you use "-1" value the pagination library will look for page number in the last uri segment ("-2" -> the last but one, etc.) I found "pagination part" of URI as the least important part, so I'm used to have it as the last. I know you can solve it in URI routing, but maybe someone will find it usefull (I certainly will :-)

Updated version can be found at the same link...


Messages In This Thread
Pagination: Advanced library (SEO friendly first page, more tuning possibilities) - by El Forum - 08-24-2010, 12:24 PM



Theme © iAndrew 2016 - Forum software by © MyBB