Hi,

Currently I'm working with gmap module to show several marks in "map/node". However, the tooltip (by default) include the followinf information:


TITLE page
Editor name date hour

<--- Information in the body/description --->

Well..; The idea is to remove, or disable, the "TITLE page" and the second line from the tooltip presentation. Can you tell me where the .module or .css file is?

Thank you.

Comments

bwv’s picture

The css will be either in the tooltip directory (assuming you are using that module) or in the gmap directory, in your sites/all/modules folder.

eiland’s picture

The tooltip is delivered from the db node field. Taxonomy is a bit complicated, as it comes from a different table, but you can relatively simply set the name of the location as a tooltip, instead of the title of the post.

For that, replace around row 267 of gmap_location.module

SELECT n.nid, n.type, n.title, l.latitude, l.longitude $marker_sql1
into
SELECT n.nid, n.type, n.title, l.latitude, l.longitude, l.name $marker_sql1

And around row 310
$newmarker['opts']['title'] = $row->title;
into
$newmarker['opts']['title'] = $row->name;

eiland’s picture

$result = db_query(db_rewrite_sql("
    SELECT n.nid, n.type, n.title, l.latitude, l.longitude, l.name, q.name AS taxonomy $marker_sql1
    FROM {node} n
    INNER JOIN {location_instance} i
      ON n.vid = i.vid
    INNER JOIN {location} l
      ON l.lid = i.lid
    $marker_sql2

    JOIN {term_node} t ON n.nid = t.nid
    JOIN {term_data} q ON t.tid = q.tid

    WHERE
      n.status = 1
    AND
      (l.latitude != 0 OR l.longitude != 0) AND q.vid=3
    ". $add_sql), $nid);

(where q.vid is wour vocabulary's vid)

and around row 310:

$newmarker['opts']['title'] = $row->name." (Term: ".$row->taxonomy.")";