Gossamer Forum
Home : Products : DBMan : Customization :

how do you only display one search field?

Quote Reply
how do you only display one search field?
you know on the search page it displays all the search fields. well i only want to have it display one. any ideas? thanks
Quote Reply
Re: [transistor420] how do you only display one search field? In reply to
It'd depend on how comfortable you are with html and the dbman script.

You'd have to turn off autogenerate and then modify the html.pl or you could create an "external" search page and call the script from there.

Check out the "unofficial faq" for search options at http://webmagic.hypermart.net/dbman/

1. In html.pl copy the subroutine html_record_form and name it something like search_record_form.
2. Modify the html code in that sub to contain the fields/layout you want.
3. Change &html_record_form() to &search_record_form() in the following subs: html_modify_search, html_view_search and html_delete_search. Look for this line:
Code:
|; &html_record_form(); print qq|

This should bring up the new search form with whatever fields you specified.

Good luck!

Quote Reply
Re: [Watts] how do you only display one search field? In reply to
ok, ill try that, thanks for your help



marcus