[Zope] <!--#var dir/name not possible?
Martijn Pieters
mj@antraciet.nl
Mon, 15 Mar 1999 09:04:33 +0100
At 20:57 14/03/99 , Milos Prudek wrote:
>Hi,
>
>I like to keep my image files in a directory "img". How can I call image
>files from lower levels? I tried <!--#var img/name--> and it did not
>work, but when I use <img src="img/name"> it works nicely... How do I do
>this with #var ?
>
<!--#var "img.name"--> is the best way to go. It'll insert a IMG tag with
an absolute URL, and if it knows the image width and height, these will be
included in the image tag. Make sure you use the quotes! img.name means:
the attribute 'name' of the object called 'img'.
You can specify the image width and height by hand in the images' property
screen, but if you uploaded a PNG or GIF image, Zope will deduce the width
and height from the image itself. The next Zope release will also support
JPEG image size detection.
--
M.J. 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
------------------------------------------