resolving between like-named parent folders?
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 For this, I have tried the following in C.D.A.B.index_html: <dtml-var "RESPONSE.redirect(A.B.index_html.url())"> But this only succeeds in redirecting to itself due to acquisition first finding A.B.index_html within D. How can I address Root.A.B.index_html separately from Root.C.D.A.B.index_html ? FWIW, Root.A.B.index_html won't do it, Zope.A.B.index_html won't do it, .A.B.index_html won't do it... ------------ Brián Withun
For this, I have tried the following in C.D.A.B.index_html: <dtml-var "RESPONSE.redirect(A.B.index_html.url())">
How can I address Root.A.B.index_html separately from Root.C.D.A.B.index_html ?
<dtml-call "RESPONSE.redirect(restrictedTraverse('/C/D/A/B/index_html').absolute_url()) "> cheers, Chris
participants (2)
-
Brian Withun -
Chris Withers