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.

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

eZ debug

Timing: Jan 18 2025 10:30:39
Script start
Timing: Jan 18 2025 10:30:39
Module start 'layout'
Timing: Jan 18 2025 10:30:39
Module start 'content'
Timing: Jan 18 2025 10:30:40
Module end 'content'
Timing: Jan 18 2025 10:30:40
Script end

Main resources:

Total runtime1.0350 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 587.9141152.6250
Module start 'layout' 0.00560.0045 740.539139.4453
Module start 'content' 0.01011.0236 779.9844401.9453
Module end 'content' 1.03370.0013 1,181.92978.1641
Script end 1.0350  1,190.0938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3277160.0002
Check MTime0.00130.1282160.0001
Mysql Total
Database connection0.00060.058810.0006
Mysqli_queries0.992895.9171460.0216
Looping result0.00040.0385440.0000
Template Total0.989195.620.4945
Template load0.00210.200520.0010
Template processing0.987095.361920.4935
Template load and register function0.00030.024610.0003
states
state_id_array0.00270.256910.0027
state_identifier_array0.00180.174320.0009
Override
Cache load0.00170.1655210.0001
Sytem overhead
Fetch class attribute can translate value0.00110.107810.0011
Fetch class attribute name0.00100.093510.0010
XML
Image XML parsing0.00010.009710.0001
class_abstraction
Instantiating content class attribute0.00000.000610.0000
General
dbfile0.00050.0498100.0001
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs