Hi,

I'm having a problem with using the template_map feature. I notice from 
the mailing list archives this is a common problem but I couldn't spot a 
solution from the archives.

I'm using htdig 3.1.2 with the patch kit on Solaris 2.6.  In htdig.conf I 
have defined template_map and template_name as follows:

template_map: Long long /usr/local/htdig/local/long.html Short short /usr/local/
htdig/local/short.html
template_name: long

(template_map is one line). What I find when using the default 
search.html search form is that whether I specify short or long as the 
format I get the output as specified by /usr/local/htdig/local/long.html.
The same thing happens when I run htsearch from the command line - it 
doesn't indicate any errors.

Now the only different between the long.html and short.html from the ones 
in $common_dir is that I've simply added $(CURRENT) to the entries, e.g 
short.html is:

$(STARSRIGHT) <strong>$(CURRENT). <a href="$(URL)">$(TITLE)</a></strong><br>

Permissions on long.html and short.html are the same:

-rw-r--r--   1 root     other        198 Sep 16 15:15 long.html
-rw-r--r--   1 root     other         77 Sep 16 16:29 short.html


When I break the definitions for Long and Short into separate lines as 
per the examples both my long.html and short.html are ignored and the 
builtin ones are used. 

What is the solution to my problem?

        Rgds.,

                Nick.

========================================================================
"Animal? No, worse - human!", Manny - "Runaway Train"
Nick O'Brien                        Phone: +44 118 931 8432
Computer Officer                    Email: [EMAIL PROTECTED]
Reading University, UK              Web: http://www.rdg.ac.uk/~vis98ngo/
 


------------------------------------
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