[Zope3-Users] images in a content object
    Duncan McGreggor 
    duncan.mcgreggor at gmail.com
       
    Tue Sep 27 13:58:34 EDT 2005
    
    
  
On Sep 27, 2005, at 11:54 AM, Benji York wrote:
> Duncan McGreggor wrote:
>> My problem is that I haven't figured out how to point to this image, 
>> as it is part of the content object itself. Ideally, I would like to 
>> be able to refer to it in a ZPT via a URL. Something on the order of
>> <img tal:attributes="src string:${context/@@absolute_url}/image_file" 
>> />
>> Any ideas or code to which I could be pointed?
>
> You could make the content object traversable, so you could do 
> http://path_to_object/image_file.
Man, that sounds perfect...
But! *sheepish grin* I've never done that before... is there someplace 
you could point me (and future readers of the list archives) where I 
could read about doing that (chapter of a book?) or some code in svn 
that shoes an example in a zcml file (I'm assuming this would be done 
in zcml?).
Thanks, man!
d
    
    
More information about the Zope3-users
mailing list