It would be nice to have a little icon that appears if the related link is a link external to the site.
I found a drupal external links module.
I know this is closed, but you can easily do something like this with the jquery.js that is provided with the installation.
Make sure that it is loaded in your desired pages, then add
$(document).ready(function() { $(function() { $('a[@href^=http]').not('[@href*=domain.com]').addClass('ext') .click(function() { window.open(this.href); return false; }); });
Change domain.com to your own domain, and any pages loaded will now have external links given a class name "ext".
You can then style "ext" to have an image beside it. The example also opens external links in a new window.
HTH.
Could you tell us whereabout to put this code. In the themes' *.tpl.php files? Thank you
Comments
Comment #1
stinky commentedI found a drupal external links module.
Comment #2
jabba_29 commentedI know this is closed, but you can easily do something like this with the jquery.js that is provided with the installation.
Make sure that it is loaded in your desired pages, then add
Change domain.com to your own domain, and any pages loaded will now have external links given a class name "ext".
You can then style "ext" to have an image beside it.
The example also opens external links in a new window.
HTH.
Comment #3
doc2@drupalfr.org commentedCould you tell us whereabout to put this code. In the themes' *.tpl.php files?
Thank you