I am using "Get Location" module for building store locator functionality in my site. I have made a content type with field = address and field type = Geolocations Fields with widget = Geocoder. I also added one another field of term reference. I created nodes and enable getlocation search block. Markers for given locations are successfully displayed on "getlocations" block map but I need to filter taxonomy term data and need to use expose filter, So when user choose one term, it gives the results marker of corresponding term reference node.

Here, I can't use view, because in this module, block is directly a module, it is not coming from any view. Please help, as how can I use exposed filter that filter my nodes by taxonomy terms and displayed corresponding markers on map.

Thanks

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hutch’s picture

You want to use a View, not the Getlocations_search module.
Among the initially disabled views supplied by Getlocations you will find one labelled "Getlocations search nearby", this one has a Google Autocomplete search facility to use with a distance filter. You can add another filter "Content: Has taxonomy term" where you can select which taxonomy and terms you want to expose.

sugandhkhanna2’s picture

Name: Getlocations search nearby
Description: Provides a map and form using Google Autocomplete search
Path: /getlocations_search_nearby

In the View, under "Advanced", I make "Exposed form in block" to "No" and it( "/getlocations_search_nearby") will appear with the map but no Google Autocomplete textbox. The search box is simple textfield.

Also, when I add "term reference" field to "Filter criteria" in Views it went to this link "/admin/structure/views/ajax/config-item-extra/clone_of_getlocations_search_nearby/search_page/filter/tid" and nothing is appear except a page full of code, code shown below.

[{"command":"settings","settings":{"basePath":"\/map_test\/","pathPrefix":"","ajaxPageState":{"theme":"seven","theme_token":"JKVdgVlEtqCG6zr9lysfbRkFWrkds_xaEEDQHowj8FU"},"CTools":{"dependent":{"edit-options-hierarchy":{"values":{"radio:options[type]":["select"]},"num":1,"type":"hide"}}}},"merge":true},{"command":"viewsDismissForm"},{"command":"viewsShowButtons","changed":true},{"command":"viewsTriggerPreview"},{"command":"insert","method":"html","selector":"#views-tab-search_page","data":"\u003Cdiv id=\u0022edit-display-settings-details\u0022\u003E\u003Cdiv id=\u0022edit-display-settings-top\u0022 class=\u0022views-ui-display-tab-actions views-ui-display-tab-bucket clearfix\u0022\u003E\u003Cdiv class=\u0022ctools-no-js ctools-button ctools-dropbutton\u0022\u003E\u003Cdiv class=\u0022ctools-link\u0022\u003E\u003Ca href=\u0022#\u0022 class=\u0022ctools-twisty ctools-text\u0022\u003Eopen\u003C\/a\u003E\u003C\/div\u003E\u003Cdiv class=\u0022ctools-content\u0022\u003E\u003Cul class=\u0022horizontal right actions\u0022\u003E\u003Cli class=\u0022view\u0022\u003E\u003Ca href=\u0022\/map_test\/getlocations_search_nearby\u0022\u003Eview Search Page\u003C\/a\u003E\u003C\/li\u003E\u003Cli

hutch’s picture

try flushing the cache.

sugandhkhanna2’s picture

Thanks Hutch.