Issue when intergrate with gmap_views

jimyhuang - August 10, 2008 - 09:54
Project:CCK GMap Address
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

I try to intergrate with gmap_views, then I doing following change and find some issue in cck_gmapaddress.

When using views to insert latitude and longitude value, I can see the number of result is correct, but when I want to insert into gmap_views, then I found the two fields of views queryname is the same, even if I adjust the option field into latitude.

"node_data_field_adopt_address_field_adopt_address_longitude"
"node_data_field_adopt_address_field_adopt_address_longitude"

But only the quername like that the gmap_views will get correct value.

"node_data_field_adopt_address_field_adopt_address_longitude"
"node_data_field_adopt_address_field_adopt_address_latitude"

Any ideas?

#1

derhasi - August 10, 2008 - 14:33

This can be fixed by implementing custom tables-data for views in cck_gmapaddress_field_settings (with $op = 'tables').

At the moment I cannot focus on that. If you want to try, you can use content_views_field_tables() in content_views.inc of the cck module as starting point. For more infromation on the tables-op of hook_field_settings() you can look at field.php.

#2

phildu - October 27, 2008 - 16:58

have you succeed, to do this ?

 
 

Drupal is a registered trademark of Dries Buytaert.