> > > Can anyone suggest a way I could add a variable to the results > > template that would allow me to display a thumbnail. > > I'm assuming that you want to display a thumbnail for given URLs or > something like this. If you have a set pattern for the image > links, then > you could use the URL variable directly, e.g. > > <img src="http://foo.com/cgi-bin/getthumb.cgi?$%(URL)"> > > You might also want to look at the template_patterns attribute: > http://www.htdig.org/attrs.html#template_patterns >
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? I'm still looking at the PHP wrapper - that may be my answer in the long run.. Thanks again. Tony ------------------------------------------------------- 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

