REDIRECTION After login from unsuccesfull new object action

Author Message

rudy demo

Saturday 21 May 2005 4:18:38 am

Hi.
I think this is not possible in eZ but I would need a confirmation.

A user tries to add a new object but he is not logged in yet. When he click the ADD button, he's normally asked to log in. But when he is logged in, eZ does not redirect to the object edit page but to the site default redirect page.

I think this is simply because eZ base itseld on the URL to know where to redirect. So usually, when redirecting to a page (.../view/123) not authorised, eZ knows from the URL what is the node/object viewed/edited. But here the URL is just http://somethin/plain/content/action so eZ does not pick the POST vars and thus cannot simply know where to redirect.

Correct?

If this is correct, is there a workaround knowing that the classics Redirect... operators will not work here?
Thank you.
Many thanks.

Xavier Dutoit

Saturday 21 May 2005 8:27:31 am

Workaround I've used:

On the layout where you display the button "add", don't display the button add, but display another "add" button, with a page explaining why and how he can sign up or login.

With that, you can better control the behavior of ez.

X+

http://www.sydesy.com

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 19 2025 03:21:56
Script start
Timing: Jan 19 2025 03:21:56
Module start 'layout'
Timing: Jan 19 2025 03:21:56
Module start 'content'
Timing: Jan 19 2025 03:21:58
Module end 'content'
Timing: Jan 19 2025 03:21:58
Script end

Main resources:

Total runtime1.4188 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 589.4141152.6563
Module start 'layout' 0.00490.0031 742.070339.5078
Module start 'content' 0.00801.4092 781.5781521.2813
Module end 'content' 1.41720.0016 1,302.85948.0938
Script end 1.4188  1,310.9531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.2476160.0002
Check MTime0.00140.0998160.0001
Mysql Total
Database connection0.00060.044310.0006
Mysqli_queries1.358695.7554540.0252
Looping result0.00060.0419520.0000
Template Total1.385297.620.6926
Template load0.00220.154420.0011
Template processing1.383097.475220.6915
Template load and register function0.00030.017710.0003
states
state_id_array0.00110.074410.0011
state_identifier_array0.00150.103120.0007
Override
Cache load0.00170.1217170.0001
Sytem overhead
Fetch class attribute can translate value0.00090.062120.0004
Fetch class attribute name0.00140.097030.0005
XML
Image XML parsing0.00070.048120.0003
class_abstraction
Instantiating content class attribute0.00000.000530.0000
General
dbfile0.00240.1686160.0001
String conversion0.00000.000640.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
2content/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
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs