Quantcast
Channel:
Viewing all articles
Browse latest Browse all 4235

Pagination Throwing up Errors

$
0
0

Hey guys,

I've been working with Pagniation on page results, but am now getting an error when I am trying to get to the second page of the Pagination.

Basically what I am getting is "There seems to have been a technical problem. Please click the back button, refresh your browser, and try again." when I am trying to get to the second page. This has become slightly problematic as I know there are 27 results...

<%--This creates a paginated list to be displayed below the first 10 results--%>
<ul class="pagination">
<% if $Pages.MoreThanOnePage %>
<% if $Pages.NotFirstPage %>
<li><a class="prev" href="$Pages.PrevLink">Prev</a></li>
<% end_if %>
<% loop $Pages.Pages %>
<% if $CurrentBool %>
<li class="active"><a href="#">$PageNum <span class="sr-only">(current)</span></a></li>
<% else %>
<% if $Link %>
<li><a href="$Link">$PageNum</a></li>
<% else %>
...
<% end_if %>
<% end_if %>
<% end_loop %>
<% if $Pages.NotLastPage %>
<li><a class="next" href="$Pages.NextLink">Next</a></li>
<% end_if %>
<% end_if %>
</ul>

This is the code for the pagination.

Any help would be so very much appreciated.


Posted to: Pagination Throwing up Errors | Show Thread | Post Reply


Viewing all articles
Browse latest Browse all 4235

Trending Articles