Copied to clipboard

Flag this post as spam?

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


  • Louis 37 posts 59 karma points
    Feb 01, 2012 @ 11:57
    Louis
    0

    XSLT Paging: Getting started

     

    Hi all,

    I have some great lists created using XSLT in Umbraco, all I need now is some cool paging.

    Does anyone have any suggestions or links demonstrating how to implement paging into my XSLT files?

    Thanks!

    Louis

     

  • Jon 36 posts 59 karma points
    Feb 01, 2012 @ 12:17
    Jon
    0

    Have a look at:

    http://www.nibble.be/?p=11

  • Louis 37 posts 59 karma points
    Feb 01, 2012 @ 12:51
    Louis
    0

    Hi,

     

    ive had a look at this, and its pretty useless! You can't copy and paste the code as it has wrong characters all over the place. I have typed it out manually with no success. This section in particular is a load of crap:

     

    <xsl:if test=”position() &gt; $recordsPerPage * number($pageNumber) and
    position() &lt;= number($recordsPerPage * number($pageNumber) +
    $recordsPerPage )">
  • Jon 36 posts 59 karma points
    Feb 01, 2012 @ 13:21
    Jon
    0

    The issue that you have with copying and pasting is down to character encoding (the quote marks and hyphens are different), a quick search and replace on the offending characters in your text editor can resolve that though :)

    There is more discussion in the forum related to paging that you may find helpful:

    http://our.umbraco.org/forum/developers/xslt/1601-xslt-paging

    and

    http://forum.umbraco.org/yaf_postsm38185_Flexible-XSLT-Paging-and-Sorting-Example.aspx

    The latter is based on the example code that you had issues with from the previous link

  • Louis 37 posts 59 karma points
    Feb 01, 2012 @ 14:38
    Louis
    0

    They are great links! Perfect! Thanks very much Jon!

  • Dan Okkels Brendstrup 101 posts 197 karma points
    Feb 02, 2012 @ 09:49
    Dan Okkels Brendstrup
    1

    My vote for the easiest and best approach to paging would be Chriztian's _PaginationHelper.xslt.

  • Connie DeCinko 931 posts 1160 karma points
    Feb 08, 2012 @ 18:09
    Connie DeCinko
    0

    Yeah, but is that only for a straight list?  I have my list broken up into groups for month and year.  I'm not seeing yet how to deal with that.

     

Please Sign in or register to post replies

Write your reply to:

Draft