Hello! Great module!

I have created a very nice user image gallery using the Views, Image, and Imagecache module by following a Drupal tutorial. I would now like to include the node title as a link within the Thickbox image pop-up so that a user can access the full node for comments or whatnot.

Is this possible?

Comments

ferrangil’s picture

I'm also wondering if it's possible or not. At least, using the views interface, the option is not there.
I'm now displaying the image and the node title. The image opens it bigger, using thickbox, and the node title links to the node page, where I display the image a bit bigger (lets say, 500px). What I want is to have also the link of the image to the image-node page (easy to do), but I also want to add a small link or image, something to open directly the image at full screen (thinkbox).
A new user will go to the image-node page, where you can read all information, fiverstars, the image itself...etc, but for more experienced users, we will give the option to display the image directly, clicking that small text or button.
Anyway, how we can link something (that is not the image itself) to the thickbox of the related image?

speis’s picture

I am also looking for this feature... any updates?

Poieo’s picture

You can use the following script to add class="thickbox" to any href on a page. I used it for a view displaying a list of titles linked to nodes.

<script>
$(document).ready(function() {
   $(".view-content .field-content a").addClass("thickbox");
   $(".view-content .field-content a").each(function() {
     $(this).attr("href", $(this).attr("href") + "?event-only=true");
   });
   tb_init('a.thickbox, area.thickbox, input.thickbox');
});
</script>
frjo’s picture

Status: Active » Closed (fixed)