Pagination, filters and search results - pagination ignored?
Issue with pagination and category filters on search results.
By default, pagination works great on my search results page, however if I select a filter (filters by category) on the page all of a sudden the pagination is broken (seems to display pagination for all channel entries rather than filtered entries):
Pagination works fine: http://emc.dev/blog
Pagination displayed for entire result set:
http://emc.dev/blog?category:blog=135...
Pagination displayed correctly:
http://emc.dev/blog?category:blog=135
So the problem arises when you navigate to the second, third page etc.. I believe this is possibly because low search is trying to display results for the category "135/P12" - eg that whole string is treated like a category rather than it stopping at the /.
Does anyone know why this might be? We do use other plugins on the site such as freebie.
Unfortunately I'm not an EE expert so I'd appreciate any pointers even if nobody has an answer.
We're also using AB paginate.
Thanks,
John.
Replies
johnrhunt 30 Apr 2015 08:01
Fixed it myself, our ABP setup was wrong.. and it was as I suspected, the page thingi needed to be before the ?
johnrhunt 30 Apr 2015 08:01
{paginate}
{if abp_has_previous}
Previous
{if:else}
Previous
{/if}
{pagination_links}
{page}
{pagination_page_number}
{/page}
{/pagination_links}
{if abp_has_next}
Next
{if:else}
Next
{/if}
{/paginate}
worked for me.
Low 30 Apr 2015 12:31
Good to hear!