Project:GMap Module
Version:6.x-1.0-rc2
Component:Code
Category:support request
Priority:critical
Assigned:Unassigned
Status:active

Issue Summary

I am trying to restart some work that I began using gmap/views and drupal v5 now using Drupal 6 and the newest versions of gmap and views. I have been running in to problems trying to re-create the themed tabbed infowindows that I had working previously.
I am inserting the following code in my themes template.php file according to the info at http://drupal.org/node/176355 :

function phptemplate_gmap_views_marker_label($view,$fields,$entry) {

$marker_tab1 = '';
$marker_tab2 = '';
// 
   drupal_add_css(path_to_theme() .'/gmap_views_marker_label.css');
//
$marker_tab1 =
'<div class="gmap-infowin">'
.'<div id="names">'
.views_theme_field('views_handle_field', 'node_data_field_first_name_field_first_name_value', $fields, $view->field[0], $entry, $view)
.' '
.views_theme_field('views_handle_field', 'node_data_field_last_name_field_last_name_value', $fields, $view->field[1], $entry, $view)
.'<br />'
.'</div>'
.'</div>'
;
//  
$marker_tab2 =
'<div class="gmap-infowin">'
.'<div id="other">'
.views_theme_field('views_handle_field', 'node_data_field_more_stuff_field_more_stuff_value', $fields, $view->field[2], $entry, $view)
.' '
.views_theme_field('views_handle_field', 'node_data_field_evenmore_stuff_field_evenmore_stuff_value', $fields, $view->field[3], $entry, $view)
.'<br />'
.'</div>'
.'</div>'
;
// this naming creates the tabs
$marker_tabs = array(
     'Name of tab1' => $marker_tab1,
     'Name of tab2' => $marker_tab2,
   );
   return $marker_tabs;
}

I can't get this to work?! It worked in drupal5 and i am sure I am not doing any thing differently.
Any idea what might be wrong??

Comments

#1

Am I safe to assume that this does not work in D6 yet (gmap 6.x-1.0-rc2):
"GMap Theming: Theming Map Markers" as outlined in http://drupal.org/node/176355
Has any one got this to work in D6??

Rob Drew

#2

?? No-one has tried this ??

#3

I have the same question, been looking around how to theme a popup, but all i found is for drupal 5.x and i don't know what the difference between.

#4

...bump....

#5

Priority:normal» critical

That function gmap_views_marker_label is nowhere to be found on the gmap module code so there's no way to override it...
Can't find anything similar to this either. Theming information is scarce voor D6, and theming functions within the code are lacking!

Hope someone has a solution to this!

Cheers

nobody click here