----- Original Message -----
From: "Gilles Detillieux" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, January 14, 2000 10:35 AM
Subject: Re: [htdig] Adding TARGET=_blank to each results set link
> According to Rodger Zeisler:
> > I tried leaving the builtin-long as the internal name a replacing the
> > template name with the file name, but that didn't work. It appeared to
> > ignore the template.html file. After I changed the internal name to
> > target-long and changed the default template_name to the same, it all
> > worked.
>
> Yes, this a long-standing discrepancy between the documentation and code
> for htsearch. The documentation says if the filename is builtin-long or
> builtin-short, the predefined template will be used. The htsearch code
> acutally checks the internal name (2nd field), rather than the file name
> (3rd field). In practise, you should set both or neither to be assured
> it will work. I suspect that one day, the code will fall in line with
> the documentation, which is the more logical of the two approaches.
>
> Note that when you change the internal names in your template_map and
> template_name attributes, you should also change them in your initial
> search form (search.html).
>
I didn't change the search form and it all worked. I am assuming that the
htsearch tries to find bultin-long in the template_map, it can't, so it uses
the default specified in the template_name, which is set to the custom
template internal name.
Rodger Zeisler
[EMAIL PROTECTED]
> --
> 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
>
>
------------------------------------
To unsubscribe from the htdig mailing list, send a message to
[EMAIL PROTECTED]
You will receive a message to confirm this.