Hello Dennis, I have solved this task in the following way: 1. The image is in ${PRODUCT_PATH}/images/first.gif 2. In the product-code: class myProduct(....): first_icon = ImageFile('images' + sep + 'first.gif', globals()) 3. In the DTML-Code <img src="first_icon" border="0" alt="First Page"> Of course, this works only for static images. For dynamically created ones, I have a problem, too. I hope this may help you a little bit, Ulla. Dennis Allison schrieb:
I have a product which needs to reference some icons which are part of the product. Following the usual structure, the icons are www sub-directory of the product. The dtml that wants to reference the image is in the dtml sub-directory. What's the reference mechanism?
<img src="../www/image.png">
in the dtml code does not resolve to the image. Nor doe the equivalent <dtml-var ...> formulation. What should the reference be?
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )