Hi Karyn,
If you need 3 different templates for the same site, then you might have to use 3 different config files... This I am unsure on, and you may be better off waiting for the mailing list for any other suggestions. I can only really think of some ugly hacks to get "dynamic" search templates happening on the same site, with the same instance of htDig.
Good luck,
Phil.
----- Original Message ----- From: "Cassio, Karyn" <[EMAIL PROTECTED]>
To: "Phil Barbier" <[EMAIL PROTECTED]>
Sent: Friday, October 01, 2004 12:22 PM
Subject: RE: [htdig] custom htsearch template
Phil,
I need to have at least 3 different versions of the page. Do you know how to set this up using the same config file, or would you suggest using 3 different config files?
Karyn
-----Original Message----- From: Phil Barbier [mailto:[EMAIL PROTECTED] Sent: Friday, October 01, 2004 5:58 AM To: Cassio, Karyn; [EMAIL PROTECTED] Subject: Re: [htdig] custom htsearch template
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: [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