CVS edit link for jdanthinne →
I've written a module that alters the default search box in many ways. I needed to have options available like in advanced search, but directly in the search box.The module adds options to select:
- which content type(s) to search
- which specific module search to use (node, help, user or any module that implements search)
- which taxonomy term to search in the results (by vocabulary)
For all these choices, there are options to switch between a select box, checkboxes or radio buttons, and also customize the selector label and the default - Any - text.
There are also options to:
- change the default search box label
- adds a default text in the search box
- change the default submit button text
- use an image instead of the submit button
- via a "tabledrag", the ordering of all the added options can be changed.
Finally, there's some javascript to:
- check if the search box is not empty on submit
- clear the default text on focus, and put it back on blur (if search box is empty)
- handle checkboxes (deselect some checkbox if -Any-, or a special module search, is checked)
- reselect options in the advanced search options (in results page)
The module integrates with Internationalization (i18nstrings).
This module is inspired by some modules that implements some of these options (search_config, search_type, custom_seach_box), but in very small parts, and I really don't think I could use one of them and extend it because there would be so much changes that the resulting module would have nothing to do with the original idea.
The module is available for D6 and for D7 (except 1 little bug for D7, but in the current D7 core version, not the module).
Fixed
new project application
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.