Hello,
I'm using the new Image Browser (6.x.-2.x) with Wysiwyg API and I need the old "link to node" feature : having the image linked to the corresponding "image" node. This is particularly useful for displaying image information (like licensing).
It seems that this feature doesn't exist anymore so I wrote a little patch that adds it.
This patch adds a "Link to node" item to the "Link" drop down list. Choosing the "Link to node" item will result in having "node" as link preset in the image tag (third value of the tag). A tag with this "node" preset is rendered with a link to the "image" type node having the file linked to it.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | imagebrowser-linktonode.patch | 2.33 KB | pyrollo |
| #1 | imagebrowser-linktonode.patch | 1.02 KB | pyrollo |
Comments
Comment #1
pyrollo commentedHere is the patch...
Comment #2
pyrollo commentedWith the previous patch, if you want to add a new picture with link to node, you have first to create an image node, then come back to the story and insert the image.
Here is a new patch including also the creation of an image node when uploading an image if image module is present.
This patch also replies to issue http://drupal.org/node/661648. Sorry for mixing the two issues but I think they both belong to the same need.
Comment #3
pyrollo commentedComment #4
pyrollo commentedComment #5
peter törnstrand commentedComment #7
nikolajb commentedIs it me or does this only work when you're using the image module? Is there any way to make it work for imagefield images, too?
Thanks in advance.