Hi,

I don't know if ht://Dig can do this itself. I think there's no way to
separate a part of an url ( ex. the host, directory or file ) without
modifying sources.
Maybe you can do this with another tool, like PHP, PERL, ASP, ... ( I use
PHP ). I'll explain two methods :
1) You can put a script url ( <img src="icon.php?link=$%(URL)"> ) instead of
your image url in your template file. This script will generate an image
depending on the url you gave it.
2) You can filter your search results with PHP to transform a tag <IMG
src="___THIS_BAD_URL_WILL_BE_REPLACED_BY_PHP___"> in <IMG
src="the_correct_icon.gif">

I use the second method to append user connection parameters to the search
results URLs.
The best result is often obtained by using several powerful tools...

Alexis Bosson - French :-) web designer

-----Original Message-----
From: Tom Freeman <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
<[EMAIL PROTECTED]>
Date: Wednesday, April 11, 2001 12:32 PM
Subject: [htdig] Including a specific icon with the search results


>hi all,
>Can anyone help me?
>I want to use HTDig for a website, the search will be over a number of
>websites, and the client requires the results to be returned with an
>associated icon, which will vary depending on the location of the
>returned link.
>Can this be done with HTDig?
>
>I hope this makes sense, so basically the results would look like this:
>
>[ICON] - Link to search result - [little stars]
> <description>
>
>[ICON] - Link to search result - [little stars]
> <description>
>
>[ICON] - Link to search result - [little stars]
> <description>
>
>etc, and the [ICON] would vary depending on the url of the link...
>
>Can this be done with HTDig?
>
>thanks for your help,
>Tom.
>--
>-----------------------------------------------------------------------
>Tom Freeman             Web: http://www.niss.ac.uk
>Web Developer        Tel: +44 1225 323789
>NISS - Division of Eduserv
>
>_______________________________________________
>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


_______________________________________________
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