Hello everybody,
I have a problem setting a View to show the closest nodes of another (I'm using last dev version of views and locations on drupal 7). So my scenario is the following:
I have 2 differents node types (A and B) both with a location field. I want to build a view that given a node A (with a determinate location) a have to retreive all the nodes B in a distance of 2Km.
So to do that I created a view with the following filters:
(1) Content: Type = B
(2) Location: Distance / Proximity, with the parameters
{origin:"node's lat/lon from views nid argument"}
{Node ID argument to use: (it doesnt allow me to select any data)}
{Location to use:"CCK Location: field_A_loc"}.
I also added a contextual filter. I selected as contextual filter: {Content: Nid}, and I added % to my path so now the pat is /myviewpath/%. This allow me to choose the value Content: Nid in the field "Node ID argument to use" of the filter "Location: Distance / Proximity".
So i try to run the view but I get no results when the view is called as mydomain.com/myviewpath/3 where 3 is a A node.
I also tried to do not use the contextual filter (that does not allow me to set the "Node ID argument to use" in the "Location: Distance / Proximity, with the parameters" filter) and running the view mydomain.com/myviewpath/node/3 but in this case I get the list of all B nodes..