According to Dave Wreski:
> Hi all.  I understand I can use the HTSEARCH_RESULTS variable to determine
> where the outputted search results should go, but how do I control how
> that information is formatted?

First of all, I must point out that HTSEARCH_RESULTS is not an actual
variable, but really just a marker.  I used the term pseudo-variable
in the docs.  It only works in the search_results_wrapper file, and can
only appear once.  It indicates to htsearch were the individual search
results will go in the output.

The formatting of these search results is controlled by the template
files.  See

        http://www.htdig.org/attrs.html#template_map
and     http://www.htdig.org/attrs.html#template_name

for details.

> I'd like to keep a consistent look and feel on my site, which includes
> having two tables on the page, one on the left, and one on the right,
> which includes the search results.  Is this possible?  It seems to
> completely ignore this fact, and simply appends the search results to the
> absolute bottom of the page..

Sounds like you've defined a header file, but no footer file.
You must either define separate header and footer files, or combine
them using a single wrapper file that makes use of the HTSEARCH_RESULTS
pseudo-variable.  See

        http://www.htdig.org/attrs.html#search_results_wrapper

for a description of this.

I'm assuming you want all the search results in the right table, and
something else in the left one.  You'd just need to nest these two tables
as two columns within another table, and define your template file so
it formats each search result entry as a complete table row within the
right table, and it should all work fine.

-- 
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] containing the single word unsubscribe in
the SUBJECT of the message.

Reply via email to