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%">&nbsp;</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: [EMAIL PROTECTED]
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



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
ht://Dig general mailing list: <[EMAIL PROTECTED]>
ht://Dig FAQ: http://htdig.sourceforge.net/FAQ.html
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-general

Reply via email to