[Zope3-Users] images in a content object
Benji York
benji at zope.com
Tue Sep 27 13:54:38 EDT 2005
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.
--
Benji York
Senior Software Engineer
Zope Corporation
More information about the Zope3-users
mailing list