Referer url in template

Author Message

Igor Vrdoljak

Monday 19 February 2007 1:21:23 pm

Hi

Is there a way to find out referer url, in template code? To be more specific, i need to set RedirectURI in user/login template to a value depending on URL the user was redirected from.

I've searched the forum, but nothing came up.

Thnx

http://www.netgen.hr/eng
http://twitter.com/ivrdoljak

Damien Pobel

Tuesday 20 February 2007 11:16:45 am

Hi Igor,

As the referer is stored in a global variable in a PHP script, you can probably write a very small template operator that return this variable.

See http://ez.no/ezpublish/documentation/development/extensions/template_operator

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.