Copied to clipboard

Flag this post as spam?

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


  • David 26 posts 50 karma points
    Sep 06, 2010 @ 17:29
    David
    0

    Previous and Next on sorted elements

    Hi Everyone,

    I've been trying to fix this problem on and off for days now - and wonder if you can help....

    I want to be able to have a "Previous" and "Next" button on a simple gallery, however the gallery is sorted and as such the "Previous" and "Next" buttons relate to the sort-order.

    Whilst I acn easily output my items in any order I wish, I cannot get the "Previous" and "Next" buttons to relate to my sort without resorting to Javscript/C# or, even worse, writing the whole page as a user-control.

    Please can an XSLT Guru help me sort this little problem?

    Many thanks in advance,
    David :)

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Sep 07, 2010 @ 09:52
    Matt Brailsford
    0

    Hi David,

    You may want to take a look at a blog post on Tim's blog

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

    It shows you how to do paging. I'm pretty sure you should be able to just add a sort to the for-each statement and it should work fine.

    Let me know if you need any further detail.

    Many thanks

    Matt

Please Sign in or register to post replies

Write your reply to:

Draft