By smither on
I have 5.1 up and running - many thanks to all the developers - Drupal is great!
In setting up menus (Primary Links, Navigation, ...) the Path setting allows me to put in a link to an external page. Is there a way to have that external, non-Drupal, page open in a new window, ie, equivalent to:
<a target = "_blank" href = "external link">
?
Thanks!
Comments
edit the code of how the
edit the code of how the menu items open a given link .... make them to open the links in new wnd!
-- Sree --
IRC Nick: sreeveturi
Can this be done for individual menu items?
Thanks Sree! As I read this, after editing the menu items code, then all menu items will open in a new window - is that right? I was hoping to be able to set the new window behaviour on an individual menu item level. Is that possible?
U can achieve it by putting
U can achieve it by putting some conditionals within the code!
-- Sree --
IRC Nick: sreeveturi
Thanks!
I suspected as much, but I am not sure that my PHP coding experience is up to that! I am going to try the external links module and hold your suggestion in reserve.
Thanks again.
external links
another option is the external links module. you can enable/disable the new window and icon options. settings are global, no anchor tags to reset if you change your mind. works on menus, too.
External Links
Thanks tm!
I will take a look at the external links module. I guess all external links in new windows would work.
Hmmm ...
The external links module looks like what I want, but when I installed it, it puts the external link icon next to _every_ link! Is there a setting somewhere that I missed to tell the module what the 'home' domain is?
Thanks!
funny that you bring that up
it seems that the latest release (1.2) is supposed to address that. hmmm...
[edit] - you may wish to install the 1.1 version. i just installed the 1.2 and it did the "external everything" for me, too.
Indeed ...
Interesting - my setup told me there was an update - it is the 1.1 version (I had installed the 1.2 version)!
Thanks for the hint - I removed 1.2 and installed 1.1 - exactly what I wanted!
Many thanks, tm.
module updated
Nice module, huh? Have to thank the maintainers properly, one day. Sorry, I neglected to say that I was posting a support request.
Btw, the 1.3 version is out, and it appears to work; don't forget the update script. You will have to determine if the "subdomain as internal" setting is useful to you or not (I had to turn it off in my situation).
External module not working in 5.x
why oh why ?
http://www.holeepassion.com
Positive actions for saving EARTH
...
(wow, haven't been here in a looong time; sorry!)
do you have an example on your site that is not working? and watch out for jquery versions and level of domain names.
btw, i see "edit" as anonymous...