On Mon, Aug 07, 2000 at 01:38:56PM -0300, Kevin Howe wrote:
> Right you are, here's how I solved it:
> 
> # __init.py__ for myProduct
> 
> misc_={
>   'chooserIcon': ImageFile('images/chooserIcon.gif',globals()),
>   }
> 
> # DTML file
> 
> <img src="<dtml-var absolute_url>/misc_/myProduct/chooserIcon" border=0>

misc_ is a root level object. Using absolute_url you are acquiring it into
your Instance URL, which is not necessary (and will hamper off-server
caching). Use &dtml-SCRIPT_NAME; instead (which will give you the absolute url
of the root object in all cases):

  <img src="&dtml-SCRIPT_URL;/misc_/myProduct/chooserIcon" border=0>  

-- 
Martijn Pieters
| Software Engineer            mailto:[EMAIL PROTECTED]
| Digital Creations          http://www.digicool.com/
| Creators of Zope               http://www.zope.org/
| ZopeStudio: http://www.zope.org/Products/ZopeStudio
-----------------------------------------------------

_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to