----- Original Message ----- From: "Bill Anderson" <bill@libc.org> To: "Timothy Wilson" <wilson@visi.com> Cc: "Sudhir Kumar" <sudhirlabh@earthlink.net>; <Zope@zope.org> Sent: Friday, May 05, 2000 7:23 AM Subject: Re: [Zope] How to use image file without image objects
Timothy Wilson wrote:
On Thu, 4 May 2000, Sudhir Kumar wrote:
How do I refer to image file in dtml documents without creating image objects.
Using a standard <img src="/Images/foo.jpg"> works in Zope pages. The advantage of using image objects is that you can "acquire" those images
in
subpages and the <dtml-var foo.jpg> takes care of height and width tags ^^^^^^^
Will likely return a key error.
IIRC, you should enclose it in quotes? (This is why I don't use dots in my imagenames...too much hassle, IMO)
Nope... That line is equivalent to <dtml-var name="foo.jpg">, and "." is perfectly legal in that context. If you put it in quotes, *then* you'll have trouble, because it would be <dtml-var expr="foo.jpg">. Python would be looking for the "jpg" attribute of "foo". Kevin