Redirecting after content publishing

Author Message

Vincent Saulnier

Friday 29 August 2003 11:40:12 am

Referring to this article :
http://ez.no/content/view/full/30281/

Don't you think that this functionality should work with the cancel button to?

Selmah Maxim

Sunday 31 August 2003 8:50:21 am

Yes ...
also in the confirm to remove the object !

Vincent Saulnier

Monday 01 September 2003 7:48:12 pm

Do you think it's gonna work in the eZ 3.2 final?

Paul Forsyth

Tuesday 02 September 2003 12:08:58 am

Personally i think the default behaviour of a redirect from a cancel (and confirm cancel) should be to take the user back to the location before the object was created. If you cancel publication you should return to the place you instigated the publication.

Redirecting to elsewhere would be confusing in terms of what they expect from guis. For example, if you cancel pop up boxes that your operating system from time to time pops up in front of you, you would expect to no change to the system when cancel is pressed.

However, if there is a good reason to redirect maybe it should be allowed. Can you give an example of the type of situation you may wish to redirect upon cancel?

Paul

Selmah Maxim

Tuesday 02 September 2003 12:26:08 am

I got problem after confirm that user will redirect to nodeid 2, and its not accessble for normal users, so he get error msg, coz of this i made override for nodeid 2.

also when user edit his profile, after submit sometimes redirect the user to the users list, he get error msg, but this solve it hidden 'ReDirect' input.

this will as option, if the form have hidden redirect valu, then user will be taken to this page, else will be take to the last visited page.

Even if every thing its finr, but will be nice if you can manage the 'redirect' page.

Paul Forsyth

Tuesday 02 September 2003 12:32:15 am

If a redirect is taking you elsewhere than where you expect on cancel then maybe an explicit redirect is needed there.

I had the same problem when user editing and submitting, yes, a redirect there worked fine for me. But that will only work for the submit, not the cancel.

The redirect to node 2 might be a problem with your site.ini. Maybe the site.ini.append file (whichever is being used) contains a default value for redirection that overrides whatever the system is trying to do (take you back to the last visited location...).

btw, the new url translation feature in 3.2 will redirect you from 'a' to 'b'. so you can define this redirect. however, as i say in this thread:

http://ez.no/developer/ez_publish_3/forum/developer/32_url_management_question

i think that its a bug!

paul

Vincent Saulnier

Tuesday 02 September 2003 8:33:35 am

Selmah is right, this is exactly why I need this functionality.

I also thought of an other reason why we would need something like this :

What about if you crete a new module and you want to use the content module within it. You would need to tell the content module that you want to redirect to your own module.

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 20:50:26
Script start
Timing: Jan 18 2025 20:50:26
Module start 'layout'
Timing: Jan 18 2025 20:50:26
Module start 'content'
Timing: Jan 18 2025 20:50:27
Module end 'content'
Timing: Jan 18 2025 20:50:27
Script end

Main resources:

Total runtime1.0294 sec
Peak memory usage4,096.0000 KB
Database Queries71

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 587.9375152.6250
Module start 'layout' 0.00550.0033 740.562539.4453
Module start 'content' 0.00881.0191 780.0078544.0469
Module end 'content' 1.02790.0015 1,324.054716.1563
Script end 1.0294  1,340.2109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3061160.0002
Check MTime0.00140.1331160.0001
Mysql Total
Database connection0.00080.076910.0008
Mysqli_queries0.974194.6296710.0137
Looping result0.00070.0718690.0000
Template Total0.999497.120.4997
Template load0.00190.181620.0009
Template processing0.997596.899920.4988
Template load and register function0.00020.018110.0002
states
state_id_array0.00070.067110.0007
state_identifier_array0.00080.078720.0004
Override
Cache load0.00170.1615330.0001
Sytem overhead
Fetch class attribute can translate value0.00070.066830.0002
Fetch class attribute name0.00120.117670.0002
XML
Image XML parsing0.00040.041730.0001
class_abstraction
Instantiating content class attribute0.00000.001770.0000
General
dbfile0.00050.0509100.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
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs