Closed (fixed)
Project:
GMap Module
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
31 Oct 2007 at 08:17 UTC
Updated:
21 Nov 2007 at 10:04 UTC
Hi, i'm no a coder but i'm trying to put directions form in infowindow tab with views. I added this form at line 178 of gmap_views.module
return $marker_label.'<form action="http://maps.google.com/maps" method="get" target="_blank"><b>Ottieni indicazioni stradali</b><br /><span class="descriptor">Indirizzo di partenza:</span><br /><input type="text" SIZE=40 MAXLENGTH=40 name="saddr" id="saddr" value="Viale Tricesimo 103 33100, Udine" class=descriptor onFocus="this.value=\'\';" /><br><INPUT value="Get Directions" TYPE="SUBMIT" class=descriptor><input type="hidden" name="daddr" <strong>value="' '</strong>
"/></form>';
}
but i can't pass longitude ad latitude parameters on views entry. Any suggestion (or different approaches)?
Comments
Comment #1
zaphod280380 commentedsorry
"but i can't pass longitude ad latitude parameters on views entry. Any suggestion (or different approaches)?"
in "daddr input value" in the form
Comment #2
zaphod280380 commentedI found a simple solution. Create a cck computed field and put this in computed code:
then put this in display format :
$display = $node_field_item['value'];Now you can expose this field in gmap views.
Comment #3
zaphod280380 commentedComment #4
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.