[Zope] images in directories
Jason C. Leach
jleach@mail.ocis.net
Thu, 2 Nov 2000 10:06:36 -0800 (PST)
hi
This is a bit of code I was working on, it may not be what you are after
but:
<dtml-in expr="PARENTS[0].objectValues('Image')">
<li><dtml-var title_or_id><br></li>
<img src="<dtml-var id>"><br><br><br>
</dtml-in>
It scans through a Folder and displays all the images it finds. If that's
not what you want, then the last line <img src="<dtml-var id>"> is
probably what you want. With OOP Images know how to display themselves,
so all you need to do is call there ID. Also, the PARENTS[0] allows you
to go backwards through parent folders 0 is the folder you script is in, 1
is one level back and so on.
j.
......................
..... Jason C. Leach
... University College of the Cariboo.
..
On 2 Nov 2000, CURTIS David wrote:
> Hi,
> I check the archives but could not find an answer. How do you display images that are burried in directories?
> For example,
> <dtml-var image1> works with the image1 at same level
> but
> <dtml-var /IMAGES/image1> does not. nor does
> <dtml-var IMAGES/image1>
> Any help would be apprechiated. Thanks in advance
>
>
>