How lucky for me - first support request!
jfall - March 12, 2008 - 20:17
| Project: | Image Path |
| Version: | 5.x-1.x-dev |
| Component: | Documentation |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hey - this looks like it might be just the ticket, nice idea.
But I'm still left wondering exactly how to use this... does it mean that in a post I can add an image tag like:
<img href="/biography/34/portrait" title="portrait">
If so - very cool. Questions:
1) what happens if the node containing the image is deleted? I guess, broken link?
2) have you looked into integrating this into something like IMCE so that "end users" could select an existing image in a post instead of having to upload a new one? http://drupal.org/node/119539
thanks - looks promising... I'll keep my eye on it.

#1
Yes! That's exactly how it will work. For instance, look at http://kurlymurly.ru/seuss -- this is a regular page with an inline image, and as you can see, the src attribute of the image is "http://kurlymurly.ru/image/1591/original". If you look at http://kurlymurly.ru/node/1591, you can see that this is an image node with two versions of the image (of course, this node is not for "end-user" consumption, and yes I could and should use imagecache to generate the thumbnails).
Yes, it will be a broken link. It seems to me that this is the correct behavior—do you agree?
Yes indeed. I have an additional module, to be packaged with this one, that "hijacks" the IMCE browser to let you browse image nodes instead of files. It already works, but I still need to integrate node addition and do a little more testing before committing it to CVS. That should happen within the next few days.
Thanks for your thoughts!
#2
That is totally cool Noel - I think this could be huge. After much browsing around the forums, it seems there are lots of folks trying to get this behaviour (canuk, eh), especially the browse existing images from imce stuff.
Yes - broken link makes sense - the only other option is to maintain a use count for the image, which is part of what has been holding up development of this type of functionality (at least from what I was able to glean from the discussions). I'd rather have the functionality and deal with the occasional broken link - so go for it!
Speaking of imagecache, will this integrate? It's be VERY VERY cool if you could optionally specify an imagecache preset, if the module is installed. I don't know enough about imagecache to know if that's possible, or how the hook would work, but it would be pretty slick.
Nice work noel - I'll be watching. If I get some free time, I'll download a dev copy and give it a spin - try to find some bugs 8-D
take care.
#3
Few things worth mentioning in the module overview and README.txt:
1. The syntax to show an inline image is
<img src="/domain/content/nid/field" alt="media" />, for example<img src="/example/photo/1/image" alt="media" />2. Input format should be set to "Full HTML" as "Filtered HTML" doesn't except the img tag.