Closed (fixed)
Project:
External New Tab
Version:
6.x-1.7
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
15 Jan 2010 at 08:26 UTC
Updated:
26 Jul 2014 at 16:37 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mcrittenden commentedHmm, I could set it up so that any links with class="newtab" would work. Sound good?
Comment #2
Tracy Dean commentedSounds spot on :)
Comment #3
mcrittenden commentedNo patch yet.
Comment #4
Tracy Dean commentedSorry, didn't realise you were waiting for a patch. Here it is.
Comment #5
mcrittenden commentedOh I wasn't necessarily. I reset the status just in accordance with the status handbook page (http://drupal.org/node/156119) but thanks!
Committed a slightly modified version to 6.x-1.x-dev (http://drupal.org/node/716902) which takes up to 12 hours to roll a package, so you should see it soon.
Comment #6
Tracy Dean commentedSorry but your modified version does not do the job. You are only allowing the 'newtab' class to trigger a new tab if it's an external link - which wasn't the idea. I think you got your logic a little confused. :)
Comment #7
mcrittenden commentedBah, committed the wrong version of that file. Thanks for the catch. Should be good now (once it regenerates the package).
Comment #9
urlstwohim commentedWhere and how do you go about setting up an internal link as class="newtab" ?
Comment #10
mcrittenden commentedAssuming you're talking about a link in the content of a page (i.e., a node or block), just use instead of . If you're using a WYSIWYG, then you might check to see if it allows you to input custom classes.
Comment #11
urlstwohim commentedDoes it require the patch for it to work? I tried just putting in (newtab) in the Stylesheet Classes box under the Advanced tab for the Link edit using WYSIWYG. It did not work. What might I be doing wrong?
Comment #12
urlstwohim commentedNever mind, I just used the Target tab for WYSIWYG when selecting edit link. I selected New Window(_blank) from the drop down window.And presto I got my new window with my search form.Yahoo!! Thanks for the help, it at least had me look elsewhere for a solution.
Comment #13
federico.parra commentedHi, could you please patch the Drupal 7 dev version as well? I need the same functionality for opening internal links in new windows.
Thanks!
Comment #14
plcarpenter commentedHelp, I am a Drupal newbie, and I have been looking everywhere trying to figure out how to get an internal link to open in a new tab.
I don't understand how to do this. Could anybody put step-by-step directions in here? I need to know if I need to use a module and then what to do after that. Sorry if that is a lot of work, but it seems like it is a common task that would benefit everybody.