Pagination after filter doesn't work??? |
[eluser]123wesweat[/eluser]
hi there, I am able to get the regular pagination to work, but not with a filter. Let me clarify: I have a list of artworks and the pagination works (now per page 5 items). But when i filter the arworks by category and i call a seperate function to get the right category and show the results, the pagination library seems to skip the per_page config setting. The num_links does work, when i have a total of 17 items it shows 4 num links. But the page overview shows all 17 items. Code: //pagination Any ideas where i should look??
[eluser]123wesweat[/eluser]
ok i have the per page ready but still the pagination doesn't work correctly. The links haven't got the right href's. The pagination keeps highlighting the first nav. so link ">" doesn't work correctly. the base url is Code: $config['base_url'] ='mydomain.com/artworks/artwork-category/'.$cat_art.'/' for the per_page i have added this function Code: $cat_art= $this->uri->segment(3);
[eluser]123wesweat[/eluser]
i think i found the solution http://ellislab.com/forums/viewthread/138916/ $config['uri_segment'] = 4; |
Welcome Guest, Not a member yet? Register Sign In |