[ZPT] page redirect

Robert Rottermann robert@redcor.ch
Mon, 26 Nov 2001 10:09:56 +0100


I wonder whether this is the right way to do it. Since tal is evaluated
before the page is displayed the page using such a redirect is never seen.

Robert
----- Original Message -----
From: "Geir Bækholt" <geirh@funcom.com>
To: "Georges" <georges@madisoncomunicacao.com.br>
Cc: <zpt@zope.org>
Sent: Friday, November 23, 2001 7:28 PM
Subject: Re: [ZPT] page redirect


> Hello Georges,
> Friday, November 23, 2001, 19:03:24, you wrote:
> G>  how can I do a page redirect based in a condition using ZPT?
>
>
> you should be able to do something like (untested):
>
> <span tal:condition="here/checksomething"
> tal:replace="request.RESPONSE.redirect(URL)" />
>
> --
> Geir Bækholt                       web-developer
> geirh@funcom.com             funcom oslo | webdev-team
>
>
> _______________________________________________
> ZPT mailing list
> ZPT@zope.org
> http://lists.zope.org/mailman/listinfo/zpt
>