Forums / Developer / Redirect inside a tpl file

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Redirect inside a tpl file

Author Message

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