Using the template in your Professional or Premium account, you can customize all of the page layout around the search results which are returned by PicoSearch. To customize within the search results themselves, you can use the template to affect the environment around the results for such things as font color and face. For more tips see here. Other structural changes to your results display will require use of your Designing settings, and making a custom search box is one of them. The custom box and button as seen above in the 'Search the FAQs' of this page is an example of this. Here's what to do:
- In your account manager's Page Design section, turn off the default search box and buttons.
- Go to your account's PicoSearch search box page, selected by "How to Add a Search Box". Cut for pasting the code which is displayed for a basic search box and button.
- Go to your account's template page, selected by "Customize Template." Paste the basic search box code into your template space. (Make a template around it if you have not already done so.)
- Modify the box and button as much as you like (wider, different wording, multiple locations, you name it!) Then, to get the current search to display in the box itself each time for the user, set the value of the VALUE attribute for INPUT TEXT tag to be _FORMQUERY. Thus you should have a line that looks like this:
<input type="text" name="query" value="_FORMQUERY" size="20" />
- Make sure you still have the _QUERYRESULTS keyword in your template for the results to show in. Then update the template and try it out!
If you are using the Any/All/Exact matches dropdown box, the way to perpetuate the user's selections are to add the keywords _ANYSELECTED, _ALLSELECTED, and _EXACTSELECTED within each OPTION tag's set of codes respectively. These words will get filled in at runtime to be blank or the appropriate HTML code to mark the current selection as selected. A similar procedure is used for partitions, see that FAQ for the right keywords. If you use a Within Results box, add _CHECK_WITHIN to that INPUT tag's set of codes, so the box will remain checked when it is used. If you offer the choice between Relevancy versus Date sorting, _SORTSELREL and _SORTSELDATE are the keywords to add to the OPTION tags for the current selection to be selected.
What else? If you are making your own language selection for a multilingual site, you can perpetuate the state of check boxes with _CHECK_LANG_(lang), and drop down selections with _SEL_LANG_(lang). For example, a button for Spanish would need _CHECK_LANG_Spanish for its state to be perpetuated. And of course template codes and the custom box itself allow you to change the wording of what the user sees. If you have other needs, just ask us!
|