[Zope] How to intregrate an image in a DTMLDocument

Dieter Maurer dieter@handshake.de
Thu, 25 Jul 2002 20:58:44 +0200


andre writes:
 > How can i make an object in Zope, so i can intregrate an image in it. I want 
 > to make a simple catalog for different items. Sometimes there is a picture, 
 > sometimes not.
In fact, I do not understand your question.

  Zope has a built in "Image" type. If you have an object "i" of this
  type, then "<dtml-var i>" (in a DTML object) or '<img tal:replace="i" />'
  (in a ZPT) will generate an '<img src="...">' that will show the
  image in an HTML page.

  You can collect images (like other objects) in Zope folders
  (or more generally, ObjectManagers).

Maybe, you take a look at the Zope book or

  <http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html>

and come back with a more precise question.


Dieter