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?
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 :)
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
is working on a reply...