Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have just recently started using this module and I think it is great. I'm using it with the Location module. I have created a VGF block using the Location:Distance/Proximity driver and selected the default widget. In the view, I have assigned the Location:Distance/Proximity as a contextual filter. The only way I can get the filter to work is if I set a default value for the Global Filter (proximity) type and enter a distance (in the contextual filter). The distance field is not exposed in the GVF block.
How do I expose the distance field so the end user can change the distance?
Thank you
Comments
Comment #1
RdeBoerHi pbonish,
It's been a long time that I did the Location interface.
I don't have a test environment handy at the moment, but I vaguely remember that it accepts arguments of the form
lat,lon (using distance as set by the admin)
lat,lon_distance
lat,lon distance
So you can append a distance to the lat,lon pair, separated by either an underscore or a space.
Rik
Comment #2
pbonish CreditAttribution: pbonish commentedRik,
Thanks for your reply. I'll have a look.
PB
Comment #3
RdeBoer