|
From: <tr...@ma...> - 2001-11-06 08:06:50
|
***add: as far as i can tell i have no "common", i have "share".***
i'm still just experimenting with testing htsearch by having had it
rundig on htdig's website.
here are some excerpts from the instructions:
FAQ
***add: 4.16. How do I get htsearch to use the star image in a
different directory than the default /htdig?
You must set either the image_url_prefix attribute, or both
star_blank and star_image in your htdig.conf, to refer to the URL
path for these files. You should also set this URL path similarly in
in common/header.html and common/wrapper.html, as they also refer to
the star.gif file. If you want to relocate other graphics, such as
the buttons or the ht://Dig logo, you should change all references to
these in htdig.conf and common/*.html.
***
1)
image_url_prefix
type:
string
used by:
htsearch
default:
IMAGE_URL_PREFIX
block:
Global
version:
all
description:
This specifies the directory portion of the URL used to display star
images. This attribute isn't directly used by htsearch, but is used
in the default URL forthe star_image and star_blank attributes, and
other attributes may be defined in terms of this one.
The default value of this attribute is determined at compile time.
example:
image_url_prefix: /images/htdig
2)
star_blank
type:
string
used by:
htsearch
default:
${image_url_prefix}/star_blank.gif
block:
Global
version:
all
description:
This specifies the URL to use to display a blank of the same size as
the star defined in the star_image attribute or in the star_patterns
attribute.
example:
star_blank: http://www.somewhere.org/icons/noelephant.gif
3)
star_image
type:
string
used by:
htsearch
default:
${image_url_prefix}/star.gif
block:
Global
version:
all
description:
This specifies the URL to use to display a star. This allows you to
use some other icon instead of a star. (We like the star...)
The display of stars can be turned on or off with the use_star_image
attribute and the maximum number of stars that can be displayed is
determined by the max_stars attribute.
Even though the image can be changed, the ALT value for the image
will always be a '*'.
example:
star_image: http://www.somewhere.org/icons/elephant.gif
4)
star_patterns
type:
string list
used by:
htsearch
default:
No default
block:
Global
version:
3.0 or later
description:
This attribute allows the star image to be changed depending on the
URL or the match it is used for. This is mainly to make a visual
distinction between matches on different web sites. The star image
could be replaced with the logo of the company the match refers to.
It is advisable to keep all the images the same size in order to line
things up properly in a short result listing.
The format is simple. It is a list of pairs. The first element of
each pair is a pattern, the second element is a URL to the image for
that pattern.
example:
star_patterns: http://www.sdsu.edu /sdsu.gif \
http://www.ucsd.edu /ucsd.gif
what i am trying to do is to get the search results page to show these images.
the images i have in my install -htdig-3.2.0b4-102801 are:
star_blank.gif
star_blank.png
star.gif
star.png
i have been through the html files in 'share'....
besides wanting to get these displayed, i'd also so like to know
where the parameters for the main results page reside, e.g., where
would i edit the format of the results page, e.g., color, etc.?
thanks in advance.
Ted Rogers
|