[Zope] how to test to find image
Paul Winkler
pw_lists@slinkp.com
Tue, 4 Mar 2003 09:26:59 -0500
On Tue, Mar 04, 2003 at 01:18:03AM -0500, Steven Smith wrote:
> 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.
either your understanding is wrong, or you're using "upwards"
to mean the reverse of what it means to me.
A/ - myimage.gif
- B/
- C/ - myimage.gif
- mypage
If mypage is a zpt that contains <img tal:replace="structure
here/myimage.gif" /> , then when you view A/C/mypage, the image
will be A/C/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.
have you actually tried it? :)
--
Paul Winkler
http://www.slinkp.com