I am developing a Drupal 7/Omega 4 (panels & views) estate agent app. For each individual property I need to include distance/proximity to their local schools. With that in mind, I installed (among others) following modules: Location, Node Location, Location CCK, Location Taxonomy and Location Search.

I constructed a view (titled distance_sec_school; it is included on the individual property page), which should calculate and display the distance.

I entered latitude/longitude of local schools into 10 original content pieces of secondary schools content type. Next I entered zip/post codes and latitude/longitude details of each property and all I need now is to display the list of all local schools within 3 miles radius of viewed property (and proximity of those schools to the current property).

Now, if at fields -> Location: Distance/Proximity ->Settings I choose 'Static Latitude/Longitude' option from the drop-down menu and enter the values manually (green frame boxes on the screenshot) it gives me the proximity to the schools, which is cool, but not what I need.

I need to dynamically fetch the Latitude/Longitude values from the current (viewed) propertiy, and use them instead of the above mentioned Static values.

I tried 'Node's Lattitude/Longitude from views nid argument' - (I should add that I am using "Contextual filter: Content: Nid" and WHEN THE FILTER IS NOT AVAILABLE - I provide default value: Content ID from URL.)

Finally, at the bottom of the configure screens I have 2 'Location to use' options - 'Node Location' or 'CCK location' but whichever I use I got a blank screen.

Does anybody have an idea what am I doing wrong here? Please take a look at the screenshot of my view and its various Settings. I am stuck on this one for 2 weeks now and would really apreciate any ideas.
Thank you for your time,
Zel

CommentFileSizeAuthor
s3fFi.png181.65 KBzeldesign
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bogdog400’s picture

Issue summary: View changes

Can't help you, but I'm stuck at the same spot. Misery loves company.

fehin’s picture

legolasbo’s picture

Status: Active » Closed (outdated)

Closing support tickets that have been inactive for over a year to clean up the issue queue. Please reopen if this is still an issue.