Closed (fixed)
Project:
Location
Version:
7.x-3.x-dev
Component:
Location_views
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Anonymous (not verified)
Created:
10 Apr 2009 at 01:51 UTC
Updated:
25 Mar 2017 at 20:41 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Anonymous (not verified) commentedWhoops. That was a bit backwards. The previous patch only supported views where location was the base table. This patch goes both ways: location as base table and term_data as base table.
Comment #2
yesct commentedtagging. :)
related/duplicate of #260726: Combining Location module with Taxonomy
Comment #3
Anonymous (not verified) commentedYeah, it's not a duplicate. This is a specific issue with a patch! Please don't close it!
Comment #4
summit commentedSubscribing, looking forward to this!
greetings, Martijn
Comment #5
socialnicheguru commentedsubscribing
Comment #6
scottatdrake commentedsubscribing
Comment #7
redraven commentedHi Bangpound,
I found this issue and your patch when trying to figure out how I could display locative data associated with a term in a view.
I applied your patch and have taken a look at the code changes.
I have some experience with relationships in views 2, but I'm having issues getting my view correctly configured to take advantage of the views integration.
My goal is to display lat/long of location information associated with a specific term in a view.
I was hoping that you could provide some brief documentation of how to do this, or if that is what this patch allows.
I have a feeling I might be missing something with the configuration of the relationship in my view, any advice on how to get this properly configured would be greatly appreciated.
Thanks for offering up this patch and working to improve views integration with location taxonomy.
Comment #8
solona commentedsubscribing.
Comment #9
Anonymous (not verified) commentedThe patch is in comment #1.
Comment #10
redraven commentedI've applied the patch and was struggling to get the view properly configured to take advantage of it.
Any quick tips on how the views relationships need to be setup to grab the location data associated with the term?
Thanks
Comment #11
summit commentedSubscribing, greetings, Martijn
Comment #12
Anonymous (not verified) commentedI dont think this patch works.
What I need is:
1. a term has a location via location_taxonomy
2. a view with tid as argument
3. show location for that term
Very simple. But what you get is this:
It joins the NODE table! Why on earth? We're not using nodes, its a term_location..
Comment #13
mrfelton commentedThis patch doesn't seem to do what I would expect.
My use case.
1) Assign lat/long to a taxonomy
2) Tag a node with that term
3) Create a view that uses the node table as the base, and shows pins on the map for each of the tagged locations.
Comment #14
mrfelton commentedIt should expose the taxonomy lat/long fields to viwes like http://drupal.org/project/geotaxonomy does
Comment #15
YK85 commentedMy use case:
I use a Taxonomy Vocabulary where each Taxonomy Term is a station name
1) Assign lat/long to a taxonomy term
2) Tag a node with multiple terms
3) Create a view that shows all station names with a number of how many nodes are flagged with that term.
Is this possible?
Comment #16
thinkact commentedI've tested the patch in #1 and it works perfect with Location-6.x-3.1! I've done a little tweak for PostgreSQL db. Will it be added to the module?
It is my use case:
This patch is so useful that the location can be simplified to only those taxonomy terms. Users need not worry about choosing the exact location. It is great improvement on user experience. Other use case would be probable, too!
Comment #17
rooby commentedThanks for the patches, this is a much needed feature.
Looks pretty good to me. Using the patch in #16 I:
* fixed up some of the variables in the $output string to use curly syntax and quotes around string array keys.
* moved the functionality into the location_taxonomy module as that is where it should go.
For my testing it works for:
* taxonomy views with taxonomy location data
* node views where you have a relationship to the taxonomy terms with taxonomy location data
* location views with term data
It would be good to get someone else to test to make sure there aren't any issues before committing but I think it looks pretty good.
Comment #18
nclavaud commentedsubscribing
Comment #19
nclavaud commentedUsing #17 I could successfully build a map of taxonomy terms (containing location data), each term showing a list of related nodes. No errors to be reported. Great!
Comment #20
agileware commentedI am using the patch in #17 with the latest dev of location and gmap 1.1 for a taxonomy term view and it is working correctly.
Comment #21
agileware commentedI also have a taxonomy term view that is displaying the locations of nodes that have the given terms using a relationship.
To get the right locations on the map (the node ones not the term ones) I added the Location: latitude and Location: longitude fields to the view using my node relationship (the base table of my view is taxonomy term), excluded them from display and selected them for the data source option in the gmap style settings.
Using that technique you could also do the opposite - show term locations on a node view.
Comment #22
thinkingcap commentedsubscribing
Comment #23
rooby commentedCommitted to 6.x-3.x-dev.
http://drupalcode.org/project/location.git/commit/2789c19
Still needs porting to 7...
Comment #24
deanflory commentedWould anyone be able to provide a noob with instructions on how to do this in Views? I've tried but can't seem to pull the address and a map out of the term. If it can only pull longitude/latitude coordinates, then it really doesn't fulfill my needs I guess. Any help would be appreciated.
I'd like to have a View that can work in a content type template that pulls the term ID from one particular vocabulary, then presents the location map and in another pane the address. Anyone help?
Comment #25
makeapage commentedWe all would benefit greatly if this is ported to the drupal 7 version.
subscribe
Comment #26
sensifreak commentedAny plans for views 3 and Drupal 7?
Comment #27
fehin commentedI'm bring this up for D7 port.
Comment #28
podarokbot
Comment #30
bmcmurray commentedAttached is a patch to add Views 3 integration for taxonomy_term_data (taxonomy terms) and Location to work together.
Comment #31
podarok#30 commited pushed to 7.x-3.x
will be tagged in upcoming release
thanks!!!