Forums / Developer / Redirect inside a tpl file
Glenn MacGregor
Thursday 21 October 2004 10:04:13 am
Hi All,
I have a tpl file in which I look at the value of an object, if the value is something then I want to redirect to an extension (I wrote) if not I want the tpl file to continue.Is there a way to to send the redirect header or something from the tpl file to get to the correct screen?
Thanks
Glenn
Ćukasz Serwatka
Thursday 21 October 2004 2:44:56 pm
Maybe this help you
http://ez.no/community/contributions/template_plugins/redirect_operators
With this operators you can redirect your users to another page
{section show=eq($var, value)} {redirectrelative( '/path/to/file.php' )} {section-else} your tasks ... {/section}
I hope this help
Personal website -> http://serwatka.net Blog (about eZ Publish) -> http://serwatka.net/blog