Michael Slater
posted this on September 14, 2011, 21:45
Sometimes, when you're on an item page, you want to have "next item" and "previous item" links.
Next and previous have meaning, of course, only in the context of a particular selection and sorting of items.
To make it easy to generate these links, we've added two new WebvantaScript statements:
<w:kb:item:next [conditions] >
<w:kb:item:previous [conditions] >
These must be used in an item context, so the system knows what the "current" item is. The conditions must be specified identically as in the item:each
iterator that defines the sequence in which you want to move backward and forward.