Posted by jhodgdon on May 19, 2011 at 9:50pm
7 followers
| Project: | Insert |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Issue Summary
The Insert module currently supports inserting an ImageCache preset.
However, it doesn't appear to support inserting, say, a thumbnail-sized image with a link to the original, the way you can in Display Fields for an Imagefield CCK field.
Hopefully that made sense... basically I want the ability to insert a thumbnail (imagecache preset I've set up), but have people be able to click the thumbnail to see the full-size image.
Thanks for considering it... very useful module!
Comments
#1
And by the way, I'm attempting to get my client who wants this to pay for me to develop this feature (shouldn't be too difficult). But it would be for D6 if I do it...
#2
sub for 7 too, all the power of the fields where it has got to. In a teaser you can not control a large or small image, a link to the file, too ... may need to revise the architecture of the module ... Very useful functionality and are often required. good module, but the power of the fields should be preserved
#3
If you want something different in teaser vs. full page, then you shouldn't be using Insert, IMO. Insert puts an image tag into the page body, so there isn't going to be a way to make it appear different on teaser vs. full page, because it's part of the body's HTML. You need to just use an image field, and not insert it, for that.
#4
yes, i can use IMCE or many other things, but power of the fields take a lot of things like integration with Views, and teaser, and yes we need to insert image into the body - with float, userfriendly and easy way. Insert can be great tool for this, but very little is not enough.
#5
My client agreed to fund the D6 development of this feature. I'm working on it and will provide a patch shortly.
#6
Here's a patch against the 6.x-1.x branch, which works for me.
#7
I'd like to see this feature in Drupal 7 as well (see #1391186: Insert as link).
#8
In teaser we can handle the display with imagechace , here we should simply create copy of image by resizing it and linking it to original one. Like in wordpress we get thumb sub-directory in every image folder.
#9
Take a look at Image Resize Filter.
#10
Is there anyway to modify the patch to change the link to image source file path?
For instance, for enlarging images I uses a php code to open in new template.
All that is required is sticking this before the relative file path:
template.php?src=Example:
Inserted image reads:
http://www.sitename.com/sites/default/files/imagecache/width_155/pun8-image0002.jpgLink to "original" would then read:
http://www.sitename.com/template.php?src=/sites/default/files/pun8-image0002.jpgPossible?