According to Ross Vandegrift:
> I'm working on having ht://Dig's results page conform to our
> websites look and feel, but have run into a problem. In my
> /etc/htdig/htdig.conf I have:
>
> template_map: Long long ${common_dir}/long.html \
> Short short ${common_dir}/short.html
> template_name: long
> search_results_header: ${common_dir}/header.html
> search_results_footer: ${common_dir}/footer.html
> search_results_wrapper: ${common_dir}/wrapper.html
> nothing_found_file: ${common_dir}/nomatch.html
> syntax_error_file: ${common_dir}/syntax.html
>
> If I muck with these HTML files, I can modify the way the results
> come out, unless I modify header.html, footer.html, or wrapper.html.
> No matter what I do with these files, nothing happens to the results.
> I can even rename them. This says to me that htsearch is getting it's
> header, footer, and wrapper from somewhere else. But there's nothing
> in the logs, nothing in the returned pages, and nothing on stderr
> (if I run from command line) indicating this fact. What's the deal?
>
> Ross Vandegrift
> [EMAIL PROTECTED]
>
> PS - Please CC me, I'm not subscribed to this list
OK, here's the deal. htsearch doesn't complain if it can't find a
template file, as it's designed to work as silently as possible. If you
grab the 3.1.6 snapshot (http://www.htdig.org/files/snapshots/) you can
use htsearch -v to get some debugging output about failed template files.
The wrapper file is a bit of an oddball as it was added afterwards,
to satisfy the need some users had for an integrated header and footer
in one file. That means the wrapper file, if properly specified and
formatted, will override the header and footer files. So, if htsearch
is using the wrapper file, changes to the header and footer files have
no effect, and vice-versa. htsearch uses the wrapper file if the
attribute is specified, if the given file exists, and if the pseudo-
variable $(HTSEARCH_RESULTS) exists in the file.
--
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]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html