Anyone have any experience with the location module, or any other custom search modules? It works perfectly (well I'd like the option to limit a search to a specific content type so I can use it for 3 different types of content and have it return results only for the one i'm searching for). But it doesn't come with a module like the search module so that I can add a search box into a region. I know that I can't just create a form and drop it in a block because I need to have a form token - but that's about all I know.
Any pointers for what I do need to do to create this block?
thanks .sander
Well it seems a standard html form does work - the form token isn't required in this case. I'm sure it's not the right way to do it but if the shoe fits...
<p class="enter">Enter Your Zip Code:</p> <form action="/search/location"><fieldset> <input type="hidden" name="country" value="us"/> <input type="hidden" name="unit" value="mile"/> <input type="hidden" name="distance" value="100"/> <input type="text" name="postal_code" size="13"/><input type="image" src="<?php print base_path() . path_to_theme() ?>/images/search.gif"/></fieldset> </form>
sander-martijn wrote:
Anyone have any experience with the location module, or any other custom search modules? It works perfectly (well I'd like the option to limit a search to a specific content type so I can use it for 3 different types of content and have it return results only for the one i'm searching for). But it doesn't come with a module like the search module so that I can add a search box into a region. I know that I can't just create a form and drop it in a block because I need to have a form token - but that's about all I know.
Any pointers for what I do need to do to create this block?
thanks .sander