Jump to:

23491 Posts in 18996 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Pagination Throwing up Errors

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 289 Views
  • an_Eskimo
    Avatar
    Community Member
    10 Posts

    Pagination Throwing up Errors Link to this post

    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.

  • an_Eskimo
    Avatar
    Community Member
    10 Posts

    Re: Pagination Throwing up Errors Link to this post

    Problem solved.... Feeling slightly, er, retarded, but it was because my form was a post not a get

    289 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.