Closed (fixed)
Project:
GMap Module
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 Jul 2010 at 16:42 UTC
Updated:
20 Apr 2011 at 22:17 UTC
Hi,
I have this code, which is working ok. The only thing is that I want to open the link in the infobubble in the map in a new window . COuld anyone help with this please?
<?php
if ($page == 0) {
$marker_text="<a href=\"$node->url\">$node->path</a><br/> ".$location['city']."<br/>Locatie slechts ter indicatie";
} else {
if ( ($location['latitude'] != 0) && ($location['longitude'] != 0) ) {
$marker_text="<a href=\"$node->url\">$node->path</a><br/>".$location['city']."<br/>Locatie slechts ter indicatie";
print gmap_simple_map($location['latitude'], $location['longitude'], '', $marker_text, 5, '400px', '250px', true,'');
}
}
?>
Tried the following in $marker_text, but it is not working:
Tried 'target=\"_blank\"
$marker_text="<a href=\"$node->url \target=\"_blank\"">$node->path</a><br/>".$location['city']."<br/>Locatie slechts ter indicatie";
Thanks for helping me!
greetings, Martijn
Comments
Comment #1
summit commentedHi could this help.. http://drupal.org/node/333118#comment-2258524
Will try it out..
NOPE: marker-url is still opening in same window, not in a new browser window..
greetings, Martijn
Comment #2
summit commentedHi,
Got it fixed by putting blank in front of the url.
See code:
greetings, Martijn
Comment #4
Apnba commentedCan you tell us what is the name of the file you fixed?
Thanks.
Comment #5
summit commentedHi, I added this code to the node-[nodetype].tpl.php which shows the map inside the node because of above code.
greetings, Martijn
Comment #6
Apnba commentedThank you very much.