Closed (fixed)
Project:
Image
Version:
5.x-1.x-dev
Component:
image_attach
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Sep 2006 at 18:10 UTC
Updated:
13 Apr 2007 at 23:46 UTC
Jump to comment: Most recent file
Comments
Comment #1
jasonwhat commentedI second this. Every image creates a link to the node page that the users is already viewing, not a link to the node with the full image. I'm changing to a bug report because the link on the thumbnail is supposed to go to the full image.
Comment #2
dodorama commentedDon't know if this behaviour is a mistake or a will of the developer, anyway you can always have it the way you want (full size image on node view) by overriding the theme_image_attach_body function in template.php
Comment #3
basicmagic.net commentedi have fixed this... will post asap...
here is my desired behavior- and how i have it working now:
1- attached image is viewed as thumbnail in node list view,
and the attached image links to node
2- attached image is viewed as thumbnail (or preview, or original) in node view-
and attached image links to image node
looks great and works great... simple fix
will post later tonight
thanks-
vincent
Comment #4
basicmagic.net commentedin image_attach.module- find this line:
and change to:
-- please note the change from "node/$node->nid" to "node/$node->iid"
this is what did it for me... running drupal 4.7.3
and image_attach.module version 1.2 2006/05/14
Comment #5
dvessel commentedAs dodazzi stated, this is easily overridable in template.php.
Comment #6
drewish commentedmarked http://drupal.org/node/115068 as a duplicate of this.
Comment #7
JohnG-1 commented@ drewish : thanks for the link to here.
(I hope it's not bad netiquette for anyone other than the maintainer to alter the 'status' of an issue?)
Would it be very difficult to commit this patch ?
IMHO the argument for this as default behaviour seems compelling. Across the two threads I count 7 votes for and 0 votes against. If anyone can think of any 'counter-arguments' I would be grateful to read them (please feel free to PM me if you prefer). I'm not looking for a debate, only to establish if there are any reasons for the current behaviour.
If this is not committable I'll make a handbook page for image_attach under http://drupal.org/handbook/modules/image and copy this 'alternative configuration' code there. Does that sound fair ?
Comment #8
drewish commentedJohnG, changing the status is okay provided you've throughly tested the patch. but this isn't a proper patch see http://drupal.org/patch for info on creating a patch.
Comment #9
jacauc commentedsubscribing
Comment #10
jorisx commentedwith the code from dvessel I had to disable to lines to get this working in 5.1
enable this would give an error: //theme_add_style(drupal_get_path('module', 'image_attach') .'/image_attach.css');
enable this would show the body text twice: //$output .= $node->body;
Comment #11
drewish commentedthis will apply to HEAD or 5.x-1.x-dev
Comment #12
drewish commentedi've committed my patch to HEAD and DRUPAL-5
Comment #13
JohnG-1 commentedthanks drewish :)
Comment #14
(not verified) commented