Hi,
I'm looking for a way to add some parameters to the search box like, for example, checkboxes corresponding to some tags I use in order to limit the search results to these parameters.
For example :
search form
*checkbox tag 1 *checkbox tag 2 *checkbox tag 3
Do you have any idea about how to proceed ?
Thank you for your time.
Comments
There is code in admin-options.php for making a checkbox list of the possible search options (including checking the ones that are set by the options.) This could easily be made into a function that could be called from the printSearchForm() function.
The Post handling of the search request would have to be extended to process this list. All this is doable and not too hard if the first issue of styling can be handled.
If you are interested in collaberating on this, I will be glad to do the "easy" part.
Yes I'd love to collaborate with you on this (even if I don't see what I could do that you can't do yourself !).
IMHO, in a first time, have it as an option would be nice with calling a special function.
Well... just tell me what you want me to do !
See if you can make it look pretty!
The search fields are hidden and exposed when you click on an icon between the input field and the search button. (But it there is only one possible field, all this is supressed.)
The searcher may choose any field from the list that the admin has designated as allowed fields. The form will remember the fields used on the last search (of that form) and offer those as the default set of fields.)
The svn and the last nightly version are the same thing, right ?
Thank you for your time.
I'm about to try to customize what you've done with checkboxes of my own tags.
Thank you !
The criterias are not multilingual, aren't they ?
For example in my gallery, I've tagged every image with "color photography" or "black-and-white photography".
I'd like to display two checkboxes with these values under the search field.
Do you have any idea about how to proceed ?