eZ Community » Forums » Developer » Redirect inside a tpl file
expandshrink

Redirect inside a tpl file

Redirect inside a tpl file

Thursday 21 October 2004 7:04:13 pm - 1 reply

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

Thursday 21 October 2004 11: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

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu