[Zope] image resources
Graham Chiu
anon_emouse@hotmail.com
Sun, 30 May 1999 09:44:38 +1200
In article <4.1.19990529132727.0098d4b0@mail.atmm.nl>, Martijn Pieters
<mj@antraciet.nl> writes
>> 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:
Doesn't seem to on my system. Zope seems to require that the image be
local.
When I input a url such as
http://distant_url/image.gif
into the Image string ( after Id, and title ), it ignores this and
replaces it with the path to the directory in which the image variable
is defined.
It also seems curious that you are able to add an attribute such as
border, set a value to it, and yet not have it displayed automatically
i.e. the behaviour is at variance with the other variables of height and
width.
Also, seems odd that the path to an image once defined is no longer
accessible to allow it to be changed.
>
><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>
>
>
>
This seems excessively verbose for what should be a simple task. Seems
that I'll have to define this as a DTML document so I can reuse it thru
the site.
Perhaps the designers should think about this.
Thanks,
-------
Regards, Graham Chiu
gchiu<at>compkarori.co.nz