25 Jul
2002
25 Jul
'02
6:58 p.m.
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