I am using htDig 3.1.6

I am trying to set up a select list to restrict searches to different school sites in 
our district.  I have searched the htDig site for days to find all the documentation I 
can on this feature, but it still isn't working properly.  I have included my code 
below.  There are two main issues:

1) If I select "Whole Site" from the RESTRICT_LIST, my searches return results.  If I 
select any other entry then I get the nomatch.html.  

2) Whether I get search results or not, the search result pages only give me an empty 
drop down list for the RESTRICT_LIST.  If I put a default in the conf.html, then the 
default is displayed in the list without any other values.  If I add $(RESTRICT) to my 
code, I can see that the correct value is being passed from the RESTRICT_LIST to the 
search results page.

It is clear that some sort of restrict select list is a feature that many users want, 
yet there is no single place that gives all the information on how to make it work.  I 
know that I am close and it is frustrating that I can't get it to work.  What piece am 
I missing?  I would appreciate any help I can get.  

Many Thanks!
Marilyn


In my conf.html, I have entered:
#

allow_in_form: restrict

#

build_select_lists:     RESTRICT_LIST,select restrict restrict_names 2 1 2 restrict ""

restrict_names:       
                "" "Whole Site" \
                "http://www.edina.k12.mn.us/concord/"; "Concord" \
                "http://www.edina.k12.mn.us/cornelia/"; "Cornelia"

#

On my search page, I have:
    <select name="restrict">
      <option value="">Whole Site 
      <option value="http://www.edina.k12.mn.us/concord/";>Concord 
      <option value="http://www.edina.k12.mn.us/cornelia";>Cornelia 
    </select>

On the header.html, nomatch.html, syntax.htm. and wrapper.html pages, I have:
<form method="get" action="$(CGI)">
  <p><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"> 
<strong>Keywords</strong>: 
    <input type="text" size="30" name="words" value="$&(WORDS)"> 
&nbsp;&nbsp;&nbsp;Limit to: $(RESTRICT_LIST) &nbsp;&nbsp;
    <input type="submit" value="Search">
    </font></p>
  <p><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"> 
    <input type="hidden" name="config" value="$&(CONFIG)">
    <input type="hidden" name="exclude" value="$&(EXCLUDE)">
    Match: $(METHOD) &nbsp;&nbsp;&nbsp;Format: $(FORMAT) &nbsp;&nbsp;&nbsp;Sort 
    by: $(SORT)</font></p>
  </form>




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
ht://Dig general mailing list: <[EMAIL PROTECTED]>
ht://Dig FAQ: http://htdig.sourceforge.net/FAQ.html
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-general

Reply via email to