On Monday, November 4, 2002, at 02:29 PM, Tony Crockford wrote:

It's not quite what I meant, the image thumbnail is on each indexed page
I wanted to repeat it on the page of results.

I was looking for a way to pass a thumbnail filename from the html page
into the htdig db and then retrieve it along with the results to display
it alongside the text excerpt.

I bodged it by making the html <title> tag the thumbnail filename and
using
$&(TITLE) as part of an <img src="$&(TITLE)" /> approach.

That works, but it's not terribly elegant and I lose <title> as a useful
attribute.

Are there any other variables that get stored in the index that I could
use?
See http://www.htdig.org/hts_templates.html for the list of values accessible through the standard template variables. Perhaps METADESCRIPTION would be useful for what you are trying to do? If for each document you set up a meta tag of form

<meta name="description" content="image_filename">

it should be possible to retrieve the file name with $%(METADESCRIPTION).

Jim



-------------------------------------------------------
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com
_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html


Reply via email to