Gilles Detillieux wrote:
>
> According to Peter Peltonen:
> > I'm running htdig-3.1.5-0glibc21 installed from an RPM in a RH 6.2 server
> > box.
Thanks for your reply,
> You can actally just uncomment the template_map definition in your
> /etc/htdig/htdig.conf, and then edit the /var/lib/htdig/common/long.html
> result template. I have to wonder how you got your results to go into
I edited /var/lib/htdig/common/long.html and made it look like this:
--snip--
<dl><dt><strong><a href="$&(URL)">$&(TITLE)</a></strong>$(STARSLEFT)
</dt><dd>$(EXCERPT)<br>
<!-- don't show url
<i><a href="$&(URL)">$&(URL)</a></i>
//-->
<font size="-1">$(MODIFIED), $(SIZE) bytes</font>
</dd></dl>
--snip--
But that didn't help at all -- my page still looks the same, the URL is
shown.
In my config file reads:
--snip--
# template_map: Long long ${common_dir}/long.html \
# Short short ${common_dir}/short.html
# template_name: long
search_results_header: /var/lib/htdig/common/talenco.dev/header.shtml
search_results_footer: /var/lib/htdig/common/talenco.dev/footer.html
nothing_found_file: /var/lib/htdig/common/talenco.dev/nomatch.html
--snip--
> table form without doing just that, unless you merely put the table
> definitions in the header.html and footer.html and let all the results
> go into a single cell of the table.
That's what I've done, yes. Was that an incorrect way of doing things?
The templates thing is a bit confusing for me... I read the documentation
from the web page but didn't quite understand what they are (are the header
and footer files part of the template or not? why use a bunch of small html
files instead of one big html file with the template attributes?).
And what is the template map? This looks a bit cryptic for me:
--snip--
template_map:
Short short ${common_dir}/short.html \
Normal normal builtin-long \
Detailed detail ${common_dir}/detail.html
--snip--
It's all probably very easy and my brain just isn't working right :)
Peter
------------------------------------
To unsubscribe from the htdig mailing list, send a message to
[EMAIL PROTECTED]
You will receive a message to confirm this.
List archives: <http://www.htdig.org/mail/menu.html>
FAQ: <http://www.htdig.org/FAQ.html>