Hi there Karyn,
For the implementation I am using, I've managed to use a full search
wrapper.
You will need something like the following:-
search_results_wrapper: /path/to/wrapper.html
in your htdig.conf file. You will also need to do similar lines for the
nomatch/incorrect syntax directives.
Within your wrapper.html, you can then include the special variables that
are used with htsearch to populate the page with data, for example I have:-
<table>
<tr>
<td align="left">Documents $(FIRSTDISPLAYED) - $(LASTDISPLAYED) of
$(MATCHES) matches.</td>
<td width="40%"> </td>
<td align="right">$(PREVPAGE) $(PAGELIST) $(NEXTPAGE)</td>
</tr>
</table>
$(HTSEARCH_RESULTS)
$(PAGEHEADER)
$(PREVPAGE) $(PAGELIST) $(NEXTPAGE)
In my wrapper.html - as well as a bunch of other design/layout code so that
the look & feel of the site is not compromised.
I hope this helps,
Phil Barbier.
--
Phil Barbier
Web Developer
Netfirms, Inc.
http://www.netfirms.com/
+1 (416) 661-2100 ext. 250
----- Original Message -----
From: Cassio, Karyn
To: htdig-general@...
Sent: Thursday, September 30, 2004 7:19 PM
Subject: [htdig] custom htsearch template
Hi,
Does anyone have a good example of a custom results template?
I am trying to use the attribute template_patterns in my config file to
create a custom template to match the look and feel of one of my sites.
The best I've been able to do puts in the default header page, then instead
of the body substitutes my custom template, then the footer looks correct.
Any help would be greatly appreciated.
Thanks,
Karyn
|