I am working on product named GNOWSYS (a content management software), the software has the facility to add Objects along with the properties and Content. Only the properties of the object are stored in the ZODB but actual content are stored in the File System i.e in the zope's var directory.
I am facing problem if the content is something other than "text" for eg an image.
Can anybody tell me How can I display the Content of an Object that is an Image in a Page Template? Thanks for ur help in advance.
MET 2004-2005 wrote at 2004-12-21 16:28 +0530:
... Can anybody tell me How can I display the Content of an Object that is an Image in a Page Template?
You cannot, or better, you should not.
A Page Template is a facility to generate structured text (HTML/SGML or XML) and not images.
Use a Python Script instead. Do not forget to set "Content-Type" of the response correctly ("container.REQUEST.RESPONSE.setHeader('Content-Type', <the correct content type>)").