Open node (internal link) in new tab How can I configure programmatically a node object to open in a new tab? I thought maybe in the $node-&gt;path array?



I don't see where and how I can achieve this... There is nothing such as a rendered &lt;a&gt; on which I can add a target="_blank".

EDIT (more specific situation):

I've got a content type "news". It is possible to create news in 2 different ways:


An editor user creates manually through the admin interface (basic).
A custom module imports data from external RSS feeds everytime a piece of news is published in it.


I've got a view that display the list of news (just title, truncated text, date, logo...). When you click on a news' title, you access the full node view (normal). If it is an internal news (created manually), it displays normally. If it is an imported news, however, I redirect using drupal_goto to the source of the news (that I saved on node creation).

I want to make this very redirection in a new tab. It's quite complicated because it is originally an internal link (node/nid) that redirects to an external link (http://www.sourcesite.com).

I can make the difference between an imported/not imported node in the hook_preprocess_views_view. But I can't assign it something like a target _blank or whatever it exists to make this node opened in a new tab.
This is a theming question and there's a choice to be made about whether to use a Views or a node template. By and large when displaying entities in views, I tend to use a particular view mode, because then I can display them similarly outside of Views if necessary. To do that:


Choose which view mode to use. In your case use the Teaser view mode, or if that's not an option create a new one.
Ensure your view's configured to display that view mode. 
For more info, download and install advanced_help, and read from the Views help at least Row styles and its children Fields and Node.
Check in the node template you're using: is there a variable that would let you add a target attribute to the title link? (There isn't in core node.tpl.php but there might be in your theme.) For more info you can read Overriding themable output and Core templates and suggestions. I'd suggest using devel_themer to see what template is actually used - make sure you've done step 2 first. The template should either be node.tpl.php or start with node-- and end .tpl.php.
If there wasn't a variable in step 3, then modify the template to have one, eg. by adding $title_link_attributes.
Implement hook_preprocess_node(). Check if the node is of the correct type and view mode and modify the variable appropriately. (And if you created a new variable, ensure that you set it to the empty string for other view modes and content types to avoid warnings.) For more info, see Setting up variables for use in a template (preprocess and process functions).


Let me know if you have any questions, or if that approach isn't appropriate for any reason. 

Btw I gave a non-JS answer because I thought that was a requirement, but now I'm not so sure.