Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Still love this theme! :-)
I'm looking for a way to add a "next" button to the detail view of a photo so that I can go to the next photo in that category (ie tag) without having to go back to the full category thumbnail view. Is there a way?
Thanks in advance!
Comments
Comment #1
israelshmueli CreditAttribution: israelshmueli commentedSorry for my delayed answer,
What you ask is not trivial.
It is possible for each node to be tagged in more than on category.
That means that the node page should be able to show different set of next/prev depends on what category page the visitor came from.
But can be done with code:
1. For each link in category view you need to attach an ID of that category.
2. On node page you need to find out the location of current node in that specific category list to be able to extract the next and prev node IDs,
3. Now you only will need to build and render those links, probably inside nodes "links" area.
Are you willing to dive into coding that?
If so, I belive I can help.
Comment #2
dem70172 CreditAttribution: dem70172 commentedSure, I can dive into coding, but I'm not sure how to do so without it being broken with future updates.