Multiple location fields result in duplicate views results
Harry Slaughter - May 12, 2009 - 18:40
| Project: | Location |
| Version: | 6.x-3.0 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
| Issue tags: | duplicate view results, location multiple locations |
Description
Because it is not possible to limit the number of results returned for location values for a given node, views will display duplicate nodes where nodes have more than one location.
This same problem would exist for the imagefield module if it did not use the views "group multiple values" feature (sorry, forgot what this is called in views speak).
Could this same option be used for location fields?
See attached image for a screenshot of the "group multiple values" feature.
| Attachment | Size |
|---|---|
| 197b63dae9ddbbce52e4cb97f99f9fa0.png | 358.06 KB |

#1
please ignore the first image, it's the wrong one.
#2
Is this using node locations or cck locations?
(also tagging)
#3
yesct, good eye, i forgot to mention that :)
in my case, i'm using CCK fields. Not sure what happens if you use node locations, maybe that would be a good workaround?
#4
This seems relatively easy to solve for location_cck, possibly only adding a line
'multiple values' => CONTENT_HANDLE_CORE,in function location_cck_widget_info, in file location/contrib/location_cck/location_cck.module if I understand the code correctly.Unfortunately, I'm not using location_cck, but a mix of gmap and location, so I can't test this. If a patch comes up for Gmap Locations (I believe this requires a change only in Locations), I'll gladly test it. I've got a site where this feature would be greatly appreciated.