[Zope] To Redirect or not to Redirect, that is the question

Ethan Fremen mindlace@majordomo.net
Tue, 19 Oct 1999 04:12:36 +0100


Samu Mielonen wrote:
> 
> Uh... how would I put it. I've hit another brickwall :)
> (I'm ashamed to come to this only to ask for help....)
> 
> I have problem with rendering images in a sub-sub-sub-folder
> that are linked with <img src> tags inside a html-document
> within that same sub-sub-sub-folder.
[...]
>         http://www.mydomain.com/imagename
> 
> whereas they should point to:
> 
>         http://www.mydomain.com/year/month/articleid/imagename
> 
> ...in order to be rendered correctly.

have you tried using <IMG SRC="<dtml-var "imagename.absolute_url()">">?

This might break if there are imagenames in the root directory.
-- 
     mindlace
                  Disclaimer: Any use of this email, in any manner
whatsoever, will increase the amount of disorder in the universe. 
Although no liability is implied herein, the reader is warned that 
this process will ultimately lead to the heat death of the universe.