Welcome Guest, Not a member yet? Register   Sign In
help with pagination links

I have pagination set and working really well. Just one problem. The pagination is for blog posts. I have a left column with the post you are reading with a right column listing other posts with pagination at the bottom. A url where the offset is 6 and the post id is 12 would look something like this.


When click on the pagination the, the offset is changed and the id and title are omitted.


How can I append that data to the pagination link?


try to add those variables to the $config['base_url'] , in the controller

$config['base_url'] = "http://example.com/blog/index/$post_id/$post_offset/$post_title";

but the page number is added always in the last segment , right ?

I would prefer to keep the current url with the title in the segment.

sprintf() anybody ?

Thanks for the reply, but I still wouldn't know how to plug the offset into the middle of the url.

Theme © iAndrew 2016 - Forum software by © MyBB