Forums / Developer / ActionRemove redirect

ActionRemove redirect

Author Message

Clemens T

Monday 07 January 2008 1:43:50 am

Hello all,

I'd like to know how to redirect the end-user after he removes an object. I'd like to redirect the user to another node (which I know before removal). RedirectURIAfterPublish and RedirectURI don't seem to work here.

Thanks!!
Clemens

Heath

Monday 07 January 2008 2:37:23 am

Hello again Clemens,

I don't think this feature exists yet in eZ Publish.

I think you may find the results you seek with the creation of a custom module view ie: /redirectdelete/delete) which uses the stock delete code to remove the node and then provides in addition a custom redirect.

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Clemens T

Monday 07 January 2008 3:53:44 am

Heya Heath,

Thanks for the quick response!

Do you mean I need to create an extension with a module and a view which has custom PHP code (which uses the eZPublish base code) or will a template override do? Could you provide a little more detail please?

Thanks again!!
Clemens

Heath

Monday 07 January 2008 4:51:27 am

Your welcome Clemens,

<i> > Do you mean I need to create an extension with a module and a view which has custom PHP code (which uses the eZPublish base code) or will a template override do? </i>

Yes I am recommending the creation of an extension module view as you describe. Nor I do not think a template override can solve your concern.

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Clemens T

Monday 07 January 2008 5:37:17 am

Ok, got ya! thx again

Chad Paulson

Friday 11 January 2008 1:50:32 pm

Correct me if I'm wrong, but what about creating a custom edit handler and using a hidden form element (could be named redirectURI or potentially anything).

Within the custom edit handler, you can redirect using the hidden form field, something like:

$module->redirectTo( $http->postVariable('redirectURI') );

For more information about custom edit handlers, check out the link below.

http://serwatka.net/en/blog/ez_publish_3_8_new_custom_edit_handler

eZ debug

Timing: Jan 18 2025 11:07:14
Script start
Timing: Jan 18 2025 11:07:14
Module start 'content'
Timing: Jan 18 2025 11:07:16
Module end 'content'
Timing: Jan 18 2025 11:07:16
Script end

Main resources:

Total runtime1.9154 sec
Peak memory usage4,096.0000 KB
Database Queries205

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0086 587.6094180.8438
Module start 'content' 0.00861.7074 768.4531614.4297
Module end 'content' 1.71610.1993 1,382.8828337.0703
Script end 1.9153  1,719.9531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.2216210.0002
Check MTime0.00160.0840210.0001
Mysql Total
Database connection0.00120.063610.0012
Mysqli_queries1.821995.11902050.0089
Looping result0.00270.14322030.0000
Template Total1.871197.720.9355
Template load0.00230.121520.0012
Template processing1.868897.565220.9344
Template load and register function0.00020.012410.0002
states
state_id_array0.00110.059710.0011
state_identifier_array0.00180.092620.0009
Override
Cache load0.00190.0999360.0001
Sytem overhead
Fetch class attribute can translate value0.00150.079440.0004
Fetch class attribute name0.00260.137080.0003
XML
Image XML parsing0.00150.080040.0004
class_abstraction
Instantiating content class attribute0.00000.001290.0000
General
dbfile0.00600.3110340.0002
String conversion0.00000.000530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 27
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs