modifying map search
This topic contains 13 replies, has 3 voices, and was last updated by Paolo 9 years, 3 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: map
-
AuthorPosts
-
September 13, 2016 at 4:48 pm #265542
Our location map has a nice little search overlay. You can do a text search, or filter by categories. So far, so good.
We also would like to filter by an advanced search field, “service area”. We configured it to appear in the advanced search, but it does not appears in the search overlay thing on the map.
Is there a way to get an advanced search field to appear as a filter in the search overlay on the map?
September 13, 2016 at 6:31 pm #265620Hi,
the map search is limited to search in the map by listing title or to filter by category. It’s not linked to the search form that can be extended with the advance search options.
Thanks
September 19, 2016 at 8:21 pm #269078Can you point us to some php we could override to make this work though?
September 20, 2016 at 3:47 pm #269672Hi,
unfortunately not. That would require a lot of custom code, it’s not something that it could be done easily with few lines of php.
Thanks
September 20, 2016 at 4:56 pm #269730Well, we do custom code … but it would be very helpful if you could at least give a few pointers as to where to get started.
I mean like literally where the map filtering code is, since you are familiar with it. It would save us a little time, anyway.
September 20, 2016 at 4:59 pm #269731I asked to developers to check what you requested and point you in the right direction…
Thanks for your patience,
September 20, 2016 at 5:13 pm #269744As paolo said it could get complicate but here is where the search input is located
https://github.com/GeoDirectory/geodirectory/blob/eb1a7a206b04c07ecafb46677401d132741ebf27/geodirectory-functions/map-functions/map_template_tags.php#L339Thanks,
Stiofan
September 22, 2016 at 2:39 pm #271236OK, I think I see how to do this (maybe), but what is the safe way to override
function geodir_draw_map($map_args = array())
September 22, 2016 at 3:01 pm #271273if u need me to add a hook somewhere let me know.
Stiofan
September 22, 2016 at 3:09 pm #271278That would be great if you could.
We want add a section to function geodir_draw_map, right after (or before) the category filter. This new section would use a custom field as the filter.
Background: this directory has “service areas”, meaning any given place is associated with one or more “service areas”. “service areas” is a multi select custom field.
We want to let the user filter the map by “service areas” as well as by category.
September 22, 2016 at 3:09 pm #271279This reply has been marked as private.September 24, 2016 at 5:17 pm #272653Hi,
I mean if you tell me where in the code you want me to add a hook i will, so in the next release it will be there. i can add a do_action() so you can hook in and add anything u want. If you can give me a line number i will add it.
Thanks,
Stiofan
September 26, 2016 at 6:15 pm #273322Can we get a quote for having your company add the ability to filter the home page map by custom field?
Similar to the existing filter by category. The custom field is a multiselect.
September 26, 2016 at 6:31 pm #273380I’m sorry, but we don’t provide customization services.
Thanks
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket