Closed (fixed)
Project:
External Links
Version:
5.x-1.3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Aug 2007 at 17:18 UTC
Updated:
28 Mar 2009 at 05:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
SolomonGifford commentedYou can edit the a.ext css (see the css file in the extlinks module directory) or better yet, go to the settings page for the module and unselect the option to use the icon.
Comment #2
belloq commentedI think you may misunderstand. I don't want to remove it from all links, just for specific ones.
Comment #3
SolomonGifford commentedSorry for not understanding.
Find the line:
in the extlink.js file and change it too;
Now only href's with class "popupclassname" will actually popup. The rest will not.
Hope that helps.
Comment #4
SolomonGifford commentedIf you still want them to popup but just don't want them to show the icon, find the line:
and change to
Now, any url with the class donotshowicon will now show the icon but will still pop up.
Comment #5
SolomonGifford commentedSorry, I meant, "Now, any url with the class donotshowicon will not show the icon but will still pop up."
Comment #6
belloq commentedVery cool. I will give this a try. Thanks for the reply.
Comment #7
pjnes commentedYou can remove the icon from certain links purely with CSS too, if you don't want to mess around with the module at all.
If you don't want the icon anywhere in your right sidebar then
should work. Replace right with left if it's the other sidebar, obviously :D
This way you won't need to edit the module each time it gets updated.
Comment #8
kylehase commentedI use this css to remove the icon and gap from my geshifiter (code syntax highlighter) sections:
Comment #9
abandoned commented:-) just subscribing...
Comment #10
sciman commentedThis was a nifty idea, but I ran into a problem in the css used in the template I'm using. I'll show the Css first:
.rsidebar {
width: 185px;
float: left;
margin-top:-10px;
margin-right:0px;
margin-bottom:0px;
margin-left:15px;
}
Now.. I tried adding a background: none; to this series, and there was no change in the impact on the block. I'll attach a picture of the problem and would appreciate any other help. I can't see the external link icon here, but when I turn off the module, the alignment issues disappear.
Comment #11
pjnes commentedit should be
.rsidebar a {...}rather than.rsidebar {...}You need to set the background on the links to none, not the whole sidebar.
Comment #12
sciman commentedThanks a million. I'll try that out!
Comment #13
Daniel Norton commentedSee #321690: Method to include certain internal links regarding the inverse situation, where the desire is to cause icon display and popup of local URIs.
I mentioned there that a solution to both of these might be to add one regex to the settings to specify whether or not the icon displays and a second regex to specify whether or not the link is opened in a new window.
Should this title be changed to include both situations and the other issue marked as a dup of this one?
Comment #14
capellic@kylehase: Thanks for this code. I only wanted to show the icon in the body of my site, so I modified your CSS code to remove it elsewhere:
Comment #15
joshmbuck commentedHello,
I was searching for this info as well, so thanks, but it doesn't exactly address my situation.
I, too, would suggest allowing users to list URLs they would like exempted. For instance, I have several different URLs. They are all mine, and I link back and forth between them (one for my blog, one for my photoblog, one for this, and one for that). Even though they are technically external links, they are still mine, and I don't want my viewers to think they are leaving one of my sites.
Also, I'm running a multi-site install with the module in the main modules folder, so anything I did to the module would affect all instances of it, where a list of exempted URLs would only affect that particular site.
Just a suggestion.
Thanks,
Josh.
Comment #16
promesI also am looking for a way to exempt links for a list of domains. Not only no icon should be shown but also the URL should not be turned into a link. Since I maintain a Dutch Drupal handbook site I don't want to be an URL like example.com or www.example.com be turned into a link, since this domain isn't ment to be linked to.
Good to see other people have the same wishlist for this great SEO module.
Comment #17
quicksketchThere is now a built-in solution in the to-be released 1.7 version. See #321690: Method to include certain internal links.