Hi there,

I have one external link in my D6 Primary Links. How do I open it in a new window, or in other words: where to put the target="_blank"?

Many thanks!

Comments

quotientix’s picture

Or maybe there's a possibility to open all links in drupal that begin with "http://" in new windows?

alihammad’s picture

I am not sure how you could do it using the drupal menu system. Maybe theres a module. But for a quick fix I would suggest you to make a block with the menu items instead. Then place the block where you like.

Ali Hammad Raza
WordsValley

quotientix’s picture

The problem is, that I'm using the module nice-menu for my primary links. So I need a kind of generic solution.

The best possible solution would be to open all http://-links in new windows... Any ideas? thx!

quotientix’s picture

Nobody who can help me out?

quotientix’s picture

Did nobody ever have that problem?

quotientix’s picture

Push!

Drupalace-1’s picture

The External Links module will make external links open in new windows. That'll do you, unless you don't want ALL external menus opening in new windows. (And I don't know whether the module plays nicely with your Nice Menus.)

If that's no good: Hmm, does CSS have any feature to make links open in new windows?

--------
Easy Drupal Admin Manual, Drupal questions, other stuff for the newbie: http://www.drupalace.com

quotientix’s picture

Drupalace, many thanks for your help, external Links Module worked perfectly and opens the external link in a new window now (even in nice menus).
CSS will support the feature in CSS3, but not yet!

Drupalace-1’s picture

Glad it worked! And thanks for the tip about CSS3.
--------
Easy Drupal Admin Manual, Drupal questions, other stuff for the newbie: http://www.drupalace.com

squidz’s picture

rubaff - I have the same issue to solve and see that you got this module to fly for you. however, the notes say that it applies icons to external links. Is there a control to prevent that happening? Since my scenario is like yours - one primary link that goes offsite (to a blog), I don't want any icons to appear.

Drupalace-1’s picture

Yes, displaying an external link icon is purely optional when using the External Links module. You can set the option at admin/settings/extlink .

squidz’s picture

The module worked perfectly. I just didn't want to go through the install motions if it didn't have the controls. But, it did. THanks for your input.

naresh4olive’s picture

Excellent module. For this requirement this module extlink is sufficient. Thanks a lot for the help.

dp69_2001’s picture

Okay, anyone know how I'd do this if the link is considered internal? For instance if I want the classifieds section of the site to open in a new window, on the same domain? It would seem like the "Include links matching the pattern:" option would work but I can't seem to figure it out.

Drupalace-1’s picture

A little Googling turns up info on how to do so using CSS3, but I understand that CSS3 still isn't released. I don't offhand know of another way...

Anyone?