[Zope] resolving between like-named parent folders?

Oliver Bleutgen Oliver Bleutgen <myzope@gmx.net>
Wed, 28 Mar 2001 20:34:35 +0200


> How would one go about the following?

> I have a folder hierarchy represented as shown:


> A
>  B
>   index_html
> C
>  D
>   A
>    B
>     index_html


> I would like the C.D.A.B.index_html to redirect to A.B.index_html

You can use
<dtml-var "RESPONSE.redirect(PARENTS[-1].A.B.absolute_url())">

There are some really good explanations of PARENTS out there if
you're interested.

cheers,
oliver