Nick O'Brien (N.G.J.OBrien@reading.ac.uk)
Fri, 17 Sep 1999 10:30:41 +0100 (GMT Daylight Time)
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/
(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
$(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?
"Animal? No, worse - human!", Manny - "Runaway Train"
Nick O'Brien Phone: +44 118 931 8432
Computer Officer Email: N.G.J.OBrien@reading.ac.uk
Reading University, UK Web: http://www.rdg.ac.uk/~vis98ngo/
To unsubscribe from the htdig mailing list, send a message to
email@example.com containing the single word unsubscribe in
the SUBJECT of the message.
This archive was generated by hypermail 2.0b3 on Fri Sep 17 1999 - 02:26:23 PDT