Redirect after creating object?

Author Message

Jorge estévez

Thursday 19 February 2009 2:08:35 pm

Hello,

Once a user creates an object within the "Public site" (not the admin) he is redirected to the root of the site (...content/view/full/2 or as defined in the admin).

What I would like to do is to redirect back to the page he has submitted the request to create the new object (something equal to history.back() in javascript) so he can continue creating new objects.

How is this done?

Thanks

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

SEBBANE Alexandre

Thursday 19 February 2009 3:00:05 pm

Hello,

the normal redirect is the page where you were, or the parent.

do you open two browser (one on admin and one on front site) ? because i discovered this week that if you change of webpage in one browser , the redirect goes to this page ...
it 's not a bug but it's normal.

i hope i am not out of subject

Paris, France

Xavier Gouley

Friday 20 February 2009 2:18:18 am

Hello Jorge,

I propose you to look on a post on my blog (wascou.org) : I studied this feature in the near past, for Ajax problems, on eZ 4.0, but the main mechanism is the same.

Hope this post will help you.

http://wascou.org/wascou/Blogs/Xavier-GOULEY/How-to-avoid-redirection-to-AJAX-modules-after-editing-a-content-in-eZpublish

Good luck,
Xavier Gouley

Xavier Gouley
http://www.gxapplications.com/eng_blog/GX-Admin-s-Blog/

David Franklin

Wednesday 17 June 2009 9:06:30 pm

Thanks for the post Xavier, most helpful.

<a href="http://makemoneyhomecourse.com/">make money from home</a>

Xavier Gouley

Thursday 31 December 2009 1:44:33 am

My blog is gone to another URL. Now you can find the same post at the following URL:

http://www.gxapplications.com/eng_blog/GX-Admin-s-Blog/How-to-avoid-redirection-to-AJAX-modules-after-editing-a-content-in-eZpublish

Xavier Gouley
http://www.gxapplications.com/eng_blog/GX-Admin-s-Blog/

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 31 2025 01:28:24
Script start
Timing: Jan 31 2025 01:28:24
Module start 'layout'
Timing: Jan 31 2025 01:28:24
Module start 'content'
Timing: Jan 31 2025 01:28:24
Module end 'content'
Timing: Jan 31 2025 01:28:24
Script end

Main resources:

Total runtime0.0266 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 588.1250151.2109
Module start 'layout' 0.00610.0043 739.3359220.6875
Module start 'content' 0.01040.0144 960.02341,001.7578
Module end 'content' 0.02490.0017 1,961.781333.9922
Script end 0.0266  1,995.7734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002810.3521140.0002
Check MTime0.00124.3364140.0001
Mysql Total
Database connection0.00072.630310.0007
Mysqli_queries0.003613.640930.0012
Looping result0.00000.052810.0000
Template Total0.00124.710.0012
Template load0.00103.718210.0010
Template processing0.00020.934010.0002
Override
Cache load0.00072.525610.0007
General
dbfile0.00238.721280.0003
String conversion0.00000.029540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs