Monday 21 December 2009 2:51:59 am
Hi Franck First, you may use eZ Survey extension for that ;). eZ Publish sets a LastAccessesURI session variable. Then, what you to do is to check if it exists and redirect the user to this URI or to a default one. Example :
$Module = $Params['Module'];
$http = eZHTTPTool::instance();
if ( $http->hasSessionVariable( "LastAccessesURI" ) ) // Check if LastAccessesURI exists
$userRedirectURI = $http->sessionVariable( "LastAccessesURI" );
else
$userRedirectURI = 'content/view/full/2'; // Default redirect
$Module->redirectTo( $userRedirectURI );
|