[Zope] accessing Photo object indirectly via property value
Rob Lemley
rclemley@yahoo.com
Sat, 13 Apr 2002 13:15:54 -0500
I want to display an image with the link to a child Photo Folder.
The folder has a property "image" which contains the name of the
image file to use. This is how I'm doing it now:
<dtml-in expr="objectValues('Photo Folder')" sort="id">
<dtml-unless private>
<a href="&dtml.url-sequence-item;">
<img src="&dtml.url-sequence-item;/<dtml-var
image>/?display=icon"
alt="image" />
</a>
<a href="&dtml.url-sequence-item;">
<dtml-var id>
</a>
</dtml-unless>
</dtml-in>
Is this the recommended way or are there some better ways to do this:
"&dtml.url-sequence-item;/<dtml-var image>/?display=icon"
Best Regards,
Rob
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com