Forum
How to get next / prev links in Runway collection detail view
I found an guide (https://docs.grabaperch.com/perch/content/functions/how-do-i-link-prev-next/) - on doing this for content regions but from my efforts so far it doesn't appear to work on collections - presumably due to the fact collections don't have _sortvalue
.
My setup is like so: I have a list/detail page for a collection. Inside the detail view I would like quick links to the next or previous collection item in sequence. How could I determine the next in collection while inside the detail view. Any pointers if this is possible?
Collections should still have _sortvalue. Have you tried <perch:showall /> to see what's available? I've used this on a few collections:
_prev.html:
_next.html:
Hi Shane, I managed to get something working from that guide in the end, although your solution is an improvement over mine so I appreciate the code, I will implement this. Muchos love.
Glad it helped!