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

JStarcher’s picture

So 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...

ijujym’s picture

I have a view with 2 exposed filters
Geo field: LatLong Pair (indexed) (= )
Search: Fulltext search (= )
Only local images are allowed.

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?

grasmash’s picture

I've posted a modified version of search_api_location that addresses this issue:
#1798168: Major module modifications

drunken monkey’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.