Closed (fixed)
Project:
Service links
Version:
6.x-1.1
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
21 Jun 2007 at 22:25 UTC
Updated:
2 Oct 2010 at 17:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
apsivam commentedwe will plan something for this in the next release
Comment #2
Anonymous (not verified) commentedthat would be cool!
Comment #3
aaron stanush commentedThis would be a fantastic addition. Could be simple as a check box on the module configuration page.
Comment #4
adamcarsonb commentedHere's how I modified this module to open each link in a new window.
In service_links.module, I modified the lines ending in //ACB. I added a 'target' parameter in the attributes array for the link. Hope this helps, and I hope I've done it right.
if ($nodelink) {
',
'. $text,
switch (variable_get('service_links_style', 1)) {
case 1:
$link = array(
'title' => $text,
'href' => $url,
'attributes' => array('title' => $title, 'rel' => 'nofollow', 'target' => '_blank') //ACB
);
break;
case 2:
$link = array(
'title' => '
'href' => $url,
'attributes' => array('title' => $title, 'rel' => 'nofollow', 'target' => '_blank'), //ACB
'html' => TRUE
);
break;
case 3:
$link = array(
'title' => '
'href' => $url,
'attributes' => array('title' => $title, 'rel' => 'nofollow', 'target' => '_blank'), //ACB
'html' => TRUE
);
break;
}
}
Comment #5
matt@antinomia commentedAttached is a patch that makes use of the external links filter module to force service links to open in a new window (applies target="_blank" via jQuery to ensure W3C compliancy -- target="_blank" is not compliant. Please review.
Comment #6
vesapalmu commentedWhile waiting for this feature you can override theme_service_links_build_link in your own theme. This means you don't have to hack the module at all. With phptemplate and current 5.x release of Service Links add this to your template.php:
Comment #7
marlandc commentedI want to follow up with #4, this worked for me. The bookmarks open up in a new window. Thanks!
#5 and #6 may work as well, I just applied the first answer.
Comment #8
TheCrow commentedComment #10
ingacosta commentedI have 6.x 1.0 version of this module. It open the link in the same window. How can I open it in another window?
Comment #11
rkdeveloper commentedits not yet fixed in 6.x-1.0 also. if somebody is still looking for some fix for this go for #6 it works for me.
Comment #12
charos commentedFor the record :It is included in 6.x-2.x-dev (noting to clarify it, since the Version has changed few times in this issue)
Comment #13
TheCrow commented