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.
The module does a really grate job, and working fine both as search page and as view. The only thing I would like to change is to get the action of "Get location" anchor inside the Submit button, this can really simplify the search process. Can you suggest what would be the best way to do this, maybe a module with some form alter function?
Comments
Comment #1
JStarcher CreditAttribution: JStarcher commentedSo you want to remove Get Location and attach the same functionality to the Search button? Sorta confused on what you are trying to do here...
Comment #2
ijujym CreditAttribution: ijujym commentedI have a view with 2 exposed filters
Geo field: LatLong Pair (indexed) (= )
Search: Fulltext search (= )
To get the nodes of certain location you should: Enter a location -> click "Get location" -> Enter a keyword -> Apply
I would like to make it a 2 steps search: Enter the location -> Enter the keyword -> Apply
At this time I'm thinking about: 1) hide original location field and map; 2) add custom text field for the location; 3) alter submission function to geocode from text field and redirect to the same view page with new filter values in the url.
Is there any other away to do this?
Comment #3
grasmash CreditAttribution: grasmash commentedI've posted a modified version of search_api_location that addresses this issue:
#1798168: Major module modifications
Comment #4
drunken monkeyShould be fixed with #1798168: Major module modifications.