Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jon Clifton 2 posts 71 karma points
    Oct 24, 2017 @ 11:22
    Jon Clifton
    0

    HELP with Pagination please

    On this page - https://www.arcticcabins.co.uk/latest-news-and-information/ - The numbers at the bottom of the page don't work properly, Can anyone help me with this please?

  • Nigel Wilson 945 posts 2077 karma points
    Oct 25, 2017 @ 23:38
    Nigel Wilson
    0

    Hi Jon

    I see the site is running a recent verison of Umbraco - is the pagination all controlled via a razor partial view or is the functionality managed via a controller, ie compiled code.

    In any case you'll need to provide some code in the forum for someone to truly be able to assist.

    Cheers, Nigel

  • David Parr 48 posts 206 karma points
    Oct 26, 2017 @ 10:55
    David Parr
    0

    Hi Jon

    Without some code it is tricky to assist you, but nonetheless make sure that somewhere in your code you are setting the value of the page from the query string as that appears to be the problem. Make sure something like the following is being used:

    int page;
    int.TryParse(Request.QueryString["page"], out page);
    

    Also ensure when fetching content nodes to skip/take based upon the above page and how many results per page.

    Thanks

Please Sign in or register to post replies

Write your reply to:

Draft