[Zope] image resources

Martijn Pieters mj@antraciet.nl
Sat, 29 May 1999 13:48:59 +0200


> Just wondering if there is a tag/variable that allows us to define
> a url or image so that I can do this:
> 
> <!--#var myimage-->
>
> produces
>
> <a href=http://distant_url><img 
> src=http://www.distant_url.com/images/their_image.jpg width=100 
> height=40 alt="Their picture off their server"></a>

Just saying <!--#var myimage--> already gets you the whole imagetah as
described above. You'd only have to put the A tag around it yourself, like so:

<a href=http://distant_url><!--#var myimage--></a>

and Zope will fill in width, height, and alt tag. Problem is, you'll get a
blue border around the image.

You could also do this:

<a href=http://distant_url><!--#with myimage-->
<img src="<!--#var absolute_url-->" width=<!--#var width--> 
height=<!--#var height--> alt="<!--#var title-->" border=0>
<!--#/with--></a>



-- 
Martijn Pieters, Web Developer 
| Antraciet http://www.antraciet.nl 
| Tel: +31-35-6254545 Fax: +31-35-6254555 
| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj 
| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 
------------------------------------------