Why 'RedirectURI' is not working ?!

Author Message

Selmah Maxim

Saturday 05 July 2003 1:44:02 am

Hi ..

Any1 knows why hidden input 'RedirectURI' is not working ?
am trying to redirect users after submitting to another page, no need to redirect them to the parent node page !!

any help ?

Selmah Maxim

Wednesday 16 July 2003 3:38:59 am

any comment ?!

Jan Borsodi

Wednesday 16 July 2003 4:11:14 am

What functionality are you referring to? Not all functionality supports redirect uris from templates.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Selmah Maxim

Wednesday 16 July 2003 4:56:57 am

user profile editing, and custom class I made !

Selmah Maxim

Wednesday 16 July 2003 5:12:29 am

the probelem start when user submit his profile he will be redirect to user/<gruop>/list , and he have no access to this page !

Also when edit custom class and submited he will be redirect to main page, i wanna redirect him to another module, such thx, to fill in more details, I had tried befor with workflow, but the approve workflow will not jump to the next workflow in the list, its go to the main page !

Coz of this I had edited befor the edit.php, and added some lines to detect if 'RedirectURI' has value, if yes then redirect him to 'RedirectURI' value.
would please make edit.php detect this ?

-------------------
if($http->hasVariable( 'RedirectURI' ))
{
$Page = $http->Variable( 'RedirectURI' );
$module->redirectTo( $Page );
$hasRedirected = true;
if(!$Page) $hasRedirected = false;
//and !$hasRedirected
}
//
if ( $http->hasSessionVariable( 'ParentObject' ) && $http->sessionVariable( 'NewObjectID' ) == $object->attribute( 'id' ) and !$hasRedirected)
{
.
.

__________________

?

Selmah Maxim

Wednesday 16 July 2003 6:18:26 am

Jan .. or any one from ez crew .. can this be done or should I search for another solution, I don`t wanna modify the code by my slef to gain the upgarde vis svn !

Selmah Maxim

Wednesday 16 July 2003 7:54:52 am

?!

Selmah Maxim

Wednesday 16 July 2003 3:32:47 pm

any help pls ?!

Selmah Maxim

Thursday 17 July 2003 12:57:38 am

any comment ?!

Jan Borsodi

Thursday 17 July 2003 1:32:35 am

I just added support for RedirectURI, see
http://ez.no/developer/ez_publish_3/documentation/customization/tips_tricks/redirecting_after_content_publishing

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Selmah Maxim

Thursday 17 July 2003 1:43:19 am

THX ALOT ... alot ..alot ..ot....t...t..t..t

:)

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 15:04:43
Script start
Timing: Jan 18 2025 15:04:43
Module start 'layout'
Timing: Jan 18 2025 15:04:43
Module start 'content'
Timing: Jan 18 2025 15:04:44
Module end 'content'
Timing: Jan 18 2025 15:04:44
Script end

Main resources:

Total runtime1.1518 sec
Peak memory usage4,096.0000 KB
Database Queries81

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 587.9141152.6250
Module start 'layout' 0.00600.0042 740.539139.4453
Module start 'content' 0.01021.1403 779.9844614.8438
Module end 'content' 1.15050.0013 1,394.828120.7813
Script end 1.1517  1,415.6094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2730160.0002
Check MTime0.00130.1152160.0001
Mysql Total
Database connection0.00060.051210.0006
Mysqli_queries1.089494.5806810.0134
Looping result0.00060.0544790.0000
Template Total1.121497.420.5607
Template load0.00210.178420.0010
Template processing1.119397.178920.5596
Template load and register function0.00010.009110.0001
states
state_id_array0.00120.108210.0012
state_identifier_array0.00160.134820.0008
Override
Cache load0.00180.1592500.0000
Sytem overhead
Fetch class attribute can translate value0.00060.051820.0003
Fetch class attribute name0.00100.0856120.0001
XML
Image XML parsing0.00070.059220.0003
class_abstraction
Instantiating content class attribute0.00000.0016130.0000
General
dbfile0.00160.1403170.0001
String conversion0.00000.001040.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
11content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
14content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 33
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs