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
_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users