Closed (won't fix)
Project:
Image Resize Filter
Version:
6.x-1.1
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
7 May 2009 at 09:22 UTC
Updated:
1 Jul 2009 at 04:56 UTC
I am using imce with fckeditor and image resize filter, Everything seems to work, although i want images linked to the original image to popup in a new window, target _blank . but using this setting seems not to work. it just links in the same window/tab. I have the image placed in as an image as normal, then in the link settings i enter the images location and tell it the target is _blank.
Has anyone else had this problem and been able to diagnose it? any help is appreciated.
Comments
Comment #1
ufku commentedComment #2
wwalc commentedI think this ticket should changed into a feature request and moved to Image Resize Filter issue tracker.
I've checked the source code and at this moment it seems that there is no way to tell this filter to add target "_blank" attribute.
Comment #3
luckysmack commentedfor the time being, for others that may have a similar problem until this is fixed, to help alleviate this issue I have installed the extlink module
But I would still rather be able to have it setup with this method as extlink is a pain to setup for internal image links to have open up in a _blank window.
Comment #4
quicksketchI'm not sure if this should be added. We've already got the ability to add a rel and class attribute, you could implement this very easily by adding some JavaScript to your theme:
Comment #5
luckysmack commentedwhere would we add this in the themes files?
Comment #6
quicksketchThere are a lot of options, but this would probably be easiest:
- Make a new text file called "utilities.js" and add it to your theme's root directory
- Open the .info file of your theme and add the line
scripts[] = utilities.jsto the file.- Edit the utilities.js file and enter the contents:
- Then make sure to empty your caches, click "Clear all caches" on admin/settings/performance to make Drupal rescan the .info file and add the JS file.
Comment #7
luckysmack commentedOk, that did not work, so I naturally figured i needed to make 'a.whatever-class' changed to a class on my image links. And after using firebug to inspect the images a litle more i spotted something i didnt spot before. There is a duplicate link for the same image, one with and one without the 'target="_blank" ' attribute. I edited the html to remove the one without the blank and no change, so i re-edited the link without the target to have the target and it worked perfectly. Though this is with the changed with the utilities.js in the theme folder. This seems like the bug that is preventing this from happening. But im not entirely sure the issue is with this module. When i view the source for my page the double link is there, but im using wysiwyg with FCKEditor. By default FCK is disabled and you have to enable 'rich text mode', and in both instances, including viewing source when fck is enabled, the double link is not shown and the link without the ' target="_blank" ' is not shown. Here is what i have:
Real code from viewing source:
The code that shows in the body field: (in any for, FCK enabled or not, and in source view for FCK)
Using firebug to edit the code to this makes the _blank work:
When in FCK, and i right click the image, i have options to edit image properties and to edit link properties. if i remove the link info in either one, the link data in the other disappears in the other and the link is properly shown, but without the ' target="_blank" ' . This seems like it might be an FCKissue but im not quite sure. It also seems like it could possibly be an image resize filter issue (but im betting FCK/wysiwyg).
So does any of this sound like the issue might actually be here or in fck? if it is there I will make the issue there. thanks
Comment #8
quicksketchThis feature won't be added to Image Resize Filter. Hopefully you've been able to figure out how to make a new window link based on the advice above, but that problem is general and not specific to Image Resize Filter at all.