[Zope] img src (newbie)

Ken Kinder kkinder@messagemedia.com
Wed, 22 Mar 2000 11:41:11 -0700


Zope in a sense replaces server-side includes with <dtml-var>.

What you need to do is upload the images to Zope in whatever folder
is appropriate. To do this, select "Image" from the create item menu
found at the bottom of your Zope "Contents" screen. Select the images
you would like to upload, and submit.

The images will then be in your object hierarchy.

You can reference them using either
  (1) Manual <img src="...">
  (2) Using dtml-var (the Zope way of doing things)

Say, for example, you uploaded an image called foo_jpg (Zope does not
allow dots in object names). You could reference it from any object in
the same folder as the image or nested folders using dtml-var

	<dtml-var foo_jpg>

Zope will automatically insert the height and width attributes and so
forth. To remove the border, you would use...

	<dtml-var "foo.jpg.tags(border=0)">

(I think)...

There are some interesting HOWTO's on this topic at zope.org.

jessica lee tishmack wrote:
> 
> Based on previous e-mails here, I have read that Zope does not support
> server-side includes.  Is there a way to get around this in reference to
> an img src, as in the following:
> 
> <img src="myprogram?-action=gif&amp;yadda yadda yadda>
> 
> Basically what I have here is a page that includes other documents (maps,
> graphs, etc.) via server-side-includes.  If there isn't any way around
> this, then I may have to forgo Zope for now...too much of my system
> depends on this sort of thing.
> 
> Thansk in Advance,
> Jessica
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )

-- 
Ken Kinder
303.381.7631