View Full Version : Defining own form - no results shown
04-03-2009, 05:39 AM
I have allowed the search script to generate the full search form once in order to get the exact source code for the form.
Once this was done, I styled the form as needed. When running a search request now though, nothing seems to occur.
The form resides here: http://www.navahomes.com.au/portfolio/search/search.asp
Is there something else I must add in order for this to work correctly?
I think you've mistakenly removed the <!--ZOOMSEARCH--> tag from your "search_template.html" file. This is necessary to indicate where you want the search output to appear on the page.
Let us know if you still have trouble after putting this tag back in.
04-07-2009, 01:21 AM
I see - yes that generates results - however only by clicking the submit button automatically generated by the <!--ZOOMSEARCH--> tag.
I am assuming, the correct way to present this page now is to add "display:none" in the CSS for all the select boxes automatically generated by the <!--ZOOMSEARCH--> tag, and keep the submit button only?
No, if you want to disable the automatically generated search form, you should do so from the Indexer.
Click "Configure"->"Search Page"->"Search form" dropdown change from "Advanced" to "Do not generate".
The reason your custom form and submit button does not work is because it is lacking a query field (since you are creating a search form which uses custom meta fields exclusively). You still need an empty "zoom_query" field so that the search script can tell a search has been submitted (as opposed to you having just visited the page).
Try adding the following to your custom search form:
<input type="hidden" name="zoom_query" value="" />
04-07-2009, 01:45 AM
Like clock-work, thank you for your prompt assistance.
Powered by vBulletin® Version 4.1.12 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.