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

camdarley’s picture

Hi, there is a feature request here: http://drupal.org/node/1088738 about setting the click action on colorbox

lsolesen’s picture

Priority: Major » Normal

@MostUniqueUsername Could this be closed as a duplicate?

moloc’s picture

Status: Active » Fixed

Actually, 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.