Open in separate window

ardee - March 26, 2008 - 15:13
Project:CCK Redirection
Version:5.x-1.0
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

The CCK add-on "Link" allows you to specify that a link be opened in a separate window, but it doesn't do redirection.

This (Redirect) CCK add-on does redirection but doesn't all you to specify that the link be opened in a separate window.

Would it be possible to add that as an option? Then if a user clicked on a teaser for a node, another window would open to the redirected site, but the window the user clicked in would stay put.

It seems like a logical and reasonable request. But if this request is denied, do you have any suggestion on how best to achieve the functionality I've described?

Thanks!

#1

Morris Singer - June 25, 2008 - 12:29

It is a good request. If you submit a patch, I will review it and add it to the code.

#2

ardee - July 18, 2008 - 17:47

I was hoping you'd code it -- I have no patch to submit. :-(

#3

maxiorel - October 21, 2008 - 09:04

I have changed both l() function to the:
drupal_set_message(t('This node is redirected to a !r', array('!r' => l(t('remote source'), $url, array("target"=>"_blank")))));
and
return l(check_plain($text), $text, array("target"=>"_blank"));

but without any success. The only result is that the info "This node is redirected to" is opened in a new window. However it doesn't work for the common user.

 
 

Drupal is a registered trademark of Dries Buytaert.