According to Clint Gilders:
> I'm writing a wrapper in perl so that I can control the output of
> htsearch a little better (ad random banners etc). One thing I would
> like to change is the URL that htsearch returns for the other pages of
> results. so.... instead of pointing at htsearch they point at my
> wrapper htsearch.cgi. Is there something I can put in my .conf file or
> in the footer html file that will do this or will I need to do some
> search and replace in my perl?
>
> Also, is this something that you would like for your contib. section
> when it is done?
That's odd. Normally, for a CGI wrapper script, the SCRIPT_NAME is
already set to the name of your wrapper, i.e. the CGI script referenced
in the action="..." parameter of the <form> tag. This environment
variable is passed on to the $(CGI) template variable used in the result
templates' follow-up search form, and also passed on to the page links
in $(PAGELIST).
In any case, you can override this by setting the script_name attribute
in your .conf file to what you want. This feature is used for PHP wrappers,
which have a different calling convention than CGI, but you could use it
in your case too. You could also set the SCRIPT_NAME environment variable
yourself in your wrapper script - whichever is easier.
If your wrapper script provides something new that's not already covered
in FAQ 4.7 & 4.11, or the examples they reference, then it might make a
great addition to our contrib section.
--
Gilles R. Detillieux E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba Phone: (204)789-3766
Winnipeg, MB R3E 3J7 (Canada) Fax: (204)789-3930
_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
Information: http://lists.sourceforge.net/lists/listinfo/htdig-general
FAQ: http://htdig.sourceforge.net/FAQ.html