Forums / Suggestions / modifications on edit.php

modifications on edit.php

Author Message

Selmah Maxim

Saturday 05 July 2003 2:41:17 am

Hi ..

The edit.php is ignor EZ_WORKFLOW_TYPE_STATUS_REDIRECT wrokflow status, its will always redirect after submitting to parent node page, I had write workflow which will redirect the user after submitting to custom page by adding hidden input in the form, but the edit.php is ignor it.

Befor i had add this lines to edit.php :

//
if($http->hasVariable( 'RedirectURI' ))
{
$Page = $http->Variable( 'RedirectURI' );
$module->redirectTo( $Page );
$hasRedirected = true;
if(!$Page) $hasRedirected = false;
}
//

if ( $http->hasSessionVariable( 'ParentObject' ) && $http->sessionVariable( 'NewObjectID' ) == $object->attribute( 'id' ) and !$hasRedirected)
{

This will force it to redirect the user to the custom page if exists, but now I don`t wanna make any modifications in the ezp code becoz of updates !

Now, what the solution, should i make this change to edit.php, or is there are way to make by workflow ?!

thx.