Closed (duplicate)
Project:
Node Gallery
Version:
6.x-2.0-alpha10
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
9 Aug 2009 at 01:38 UTC
Updated:
16 Nov 2010 at 02:53 UTC
Hi. I am using the standard installation of node gallery to create an image gallery. In the image detail view, I would like the image itslef to link to the next image node. Basically I want to add the same link that the "next" button targets to the image . So far I have tried to override template_preprocess_gallery_image_detail in my template.php, but have had no success. Can anyone help?
Great module!
Thanks.
Comments
Comment #1
slongbons commentedComment #2
Anjaro commentedfollowing
Comment #3
sodome commentedI've been struggling to implement this in either node gallery or CCK gallery with no success to date. In CCK gallery I suspect the solution would combine token with views, but I'm lost finding the 'next' variable- dev module doesn't show me anything to grab. In node gallery there may well be a simple single line we could insert in the template as slongbons suggests, but it's not at all clear to me where to start. Possible alternate approaches look messier, eg using css to expand the area of the 'next' link so that it encompasses the image. Any help would be appreciated, and I'd be thrilled to test/fiddle with proposed patches.
Comment #4
justintime commentedI don't the theme skills to whip this up, but I can tell you the function you're looking for: node_gallery_get_image_navigator. Pass it in the gallery id (stored in $node->gid) and the current nid, and you get back an associative array like this:
Does that give you what you need to get off and running?
Comment #5
scroogie commentedAm I mistaken, or is template_preprocess_image_detail_view() never actually called?
Comment #6
justintime commentedSee #955546: 3.x link image to next node.