Hi 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. Regards Jens Bjerre
andre wrote:
Hi
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.
Maybe have a look at the CMF? http://lists.zope.org/mailman/listinfo/zope-cmf cheers, Chris
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
participants (3)
-
andre -
Chris Withers -
Dieter Maurer