[Zope] how to test to find image

Steven Smith ssmith@mustang1965.com
Tue, 04 Mar 2003 01:18:03 -0500


I'm email this list again since several were nice enough to respond last 
time. I new and this list is helpful.

I'm in Plone and want to display an image at the top of a UI box (like 
to top of the related or navigation box). However this image needs to 
change depending on what subfolder/branch I'm at. Normally I have seen 
the use of the tag "here/myimage.gif". My understanding is the default 
is to start at the top most directory and work its way through the site 
until it finds the first occurance of myimage.gif. I would like to 
reverse this behavior. I need it to start looking in the current 
location and work upwards until it finds myimage.gif.

The reason is that under each of my first level subfolders I have placed 
a myimage.gif file. Even if I'm maybe four folders down I want to 
display that myimage.gif from the current branch (which my be three 
folders up). However if the normal logic of 'here' works it will find 
the wrong myimage.gif.


<div class="box">
    <img tal:replace="structure here/myimage.gif" />
    <other tags and things .....>
</div>


Thanks,
Steven