According to Jim Cole:
> Andreas Kunert's bits of Tue, 16 Jul 2002 translated to:
> >i have a prob with the build_select_lists in Version 3.2.0b4
> >
> >i want to create a restrict_list
> >
> >entry in configfile
> >
> >.....
> >build_select_lists: RESTRICT_LIST,multiple restrict2 restrict_names_list
> >1 1 2 restrict2 ""
> >restrict_names_list: "loka" "loka" "spor" "spor" "regi" "regi"
> >.....
> 
> I don't think the tuple-size and index values you have specified
> make sense. Based on your restrict_names_list definition, it
> looks like the tuple-size should be 2. Assuming this it true,
> then the fact that your labels and values are the same means that
> the order of the label and value indexes doesn't really matter,
> but one should be 1 and the other 2.
> 
> Try replacing 1 1 2 with 2 2 1 or 2 1 2.

Or use 1 1 1 and don't double up the names in restrict_names_list.  If the
shown value is to be the same as the value to be used for the parameter's
internal setting, then a simple list with one entry per item will do.
(See the matches_per_page_list example in
http://www.htdig.org/hts_selectors.html)

> >Open search.html an search for a term.
> >
> >I can see the resultpage with the select-list of matches, sort, format
> >and matchesperpage.
> >
> >Why i can't see my own restrict2 list?
> >
> >Something forgotten? Something wrong?

Did you define "allow_in_form: restrict2" in your config file?
Did you add RESTRICT_LIST to the follow-up search forms in header.html
(or wrapper.html), nomatch.html and syntax.html?

-- 
Gilles R. Detillieux              E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/
Dept. Physiology, U. of Manitoba  Winnipeg, MB  R3E 3J7  (Canada)


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a 
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html

Reply via email to