You can predefine an unlimited number of search profiles that reside in a file or files. To use this, make up a series of lines like:
mv_search_field=artist mv_search_field=category mv_orsearch=yes
These correspond to the MiniVend search variables that can be set on a form. You can set it right on the page that contains the search.
[set artist_profile] mv_search_field=artist mv_search_field=category mv_orsearch=yes [/set]
This is the same:
[set artist_profile] sf=artist sf=category os=yes [/set]
Then in the search form, set a variable with the name of the profile:
<INPUT TYPE=hidden NAME=mv_profile VALUE=artist_profile>
In a one-click search, you use the mp
modifier:
[page scan se=Leonardo/mp=artist_profile]A left-handed artist[/page]
You can also place them in a file. Define the file name in the SearchProfile directive. (You must reconfig the catalog for MiniVend to read it.) The profile is named by placing a name following a __NAME__ pragma:
__NAME__ title_search
The __NAME__ must begin the line, and be followed by whitespace and then the name.
The special variable mv_last
stops interpretation of search variables. The following variables are
always interpreted:
mv_dict_look mv_searchspec mv_range_look mv_range_min mv_range_max
Other than that, if you set mv_last in a search profile, and there are other variables on the search form, they will not be interpreted.
If you want to place multiple search profiles in the same file, separate them with __END__, which must be on a line by itself.