Pagination links not working
I've read through the various solved pagination tickets already on the site and have tried the suggestions listed, specifically these posts:
https://getsatisfaction.com/low/topic...
https://getsatisfaction.com/low/topic...
When using pagination the first 20 results appear and the pagination links are present, however, clicking the pagination links always returns the first 20 results. Here is the pertinent code from my results page:
{exp:low_search:results channel="bmac_fish" orderby_sort="length|desc" limit="20" paginate="bottom" paginate_base="{segment_1}/{segment_2}/{segment_3}/{freebie_4}"}
{if no_results}
Your search returned no results.
{/if}
{if count==1}
<table width="100%" border="0" cellpadding="2">
<tr>
<td><strong>Master Angler</strong></td>
<td><strong>Species</strong></td>
<td><strong>Length</strong></td>
<td><strong>Date Caught</strong><br /><small><a href="/master-anglers/find-a-master-angler/explanation-of-date-accuracy">not all dates accurate</a></small></td>
<td> </td>
</tr>
{/if}
<tr class="{switch='results-odd|results-even'}">
<td>{screen_name}</td>
<td>{categories}{category_name}{/categories}</td>
<td>{length}"</td>
<td>{entry_date format="%m/%d/%Y"}</td>
<td class="results-view"><a href="{structure:page_url_for:{entry_id}}" class="cta-button">view</a></td>
</tr>
{if count == total_results}
</table>
{/if}
{paginate}
Page {current_page} of {total_pages} | {pagination_links}
{/paginate}
{/exp:low_search:results}
We are using Structure (v3.3.14.5) and thus Freebie to allow using segments after the breaking segments. We are on the current build of Low Search (v4.0.0). Our EE install is 2.9.0.
Replies
Low 19 Feb 2015 13:52
If you replace the low_search:results tag with a native channel:entries tag, does the pagination work then?
nathancrobertson 19 Feb 2015 13:57
No it does not.
Low 19 Feb 2015 14:03
Then I'm afraid the issue is not caused by (or can be solved by) Low Search, as LS calls the channel:entries tag, which in turn generates the pagination. Have you contacted Structure support for this? Or perhaps take a look at the EE Answers site for similar issues.
nathancrobertson 19 Feb 2015 14:14
Will do. Thanks for the quick response.
nathancrobertson 19 Feb 2015 14:40
If it helps anyone else I found the issue. In Freebie there is a setting for "Always Parse Pagination" which defaults to No. Changing to Yes made pagination work for Low Search (and Channel Entries tag).
Low 19 Feb 2015 14:42
Cool, thanks for letting me know!