Closed (fixed)
Project:
Media Gallery
Version:
7.x-1.0-beta3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
20 Mar 2011 at 21:55 UTC
Updated:
13 Jul 2012 at 22:01 UTC
Hi, I'd like to remove a link to the full node, that appears on image when user clicks thumbnail and gets full-sized image in a lightbox (colorbox).
I've tried to play with line 421 in media_gallery.theme.inc:
$item .= empty($variables['no_link']) ? l($image, $link_path, array('html' => TRUE, 'attributes' => $attributes)) : $image;
But it seems to affect both thumbnail in the gallery and image in the lightbox.
Help please?
Comments
Comment #1
camdarley commentedHi, there is a feature request here: http://drupal.org/node/1088738 about setting the click action on colorbox
Comment #2
lsolesen commented@MostUniqueUsername Could this be closed as a duplicate?
Comment #3
moloc commentedActually, this is not implemented (see feature request in #1).
If you like to remove the link to the detail page, you can modify (note: on next media_gallery update your modifications are lost):
file: media_gallery.theme.inc
function: theme_media_gallery_media_item_lightbox()
line: ~ 209 change / add to $link_vars['no_link'] = TRUE;
As this is a support request and a solution is given, i close it.