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.

Comments

pyrollo’s picture

StatusFileSize
new1.02 KB

Here is the patch...

pyrollo’s picture

StatusFileSize
new2.33 KB

With 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.

pyrollo’s picture

Assigned: Unassigned » pyrollo
Status: Active » Needs review
pyrollo’s picture

Assigned: pyrollo » Unassigned
peter törnstrand’s picture

Assigned: Unassigned » peter törnstrand
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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

nikolajb’s picture

Is 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.