Redirect URI after remove

Author Message

Alliance Maliam

Tuesday 23 September 2008 2:19:44 am

Hi every one,

I would like to make a redirect after the removal of an object to display the confirmation message, but the redirection does not work.

<form method="post" action={'/content/action'|ezurl}>
<input type="hidden" name="ContentNodeID" value="{$nr.node_id}" />
<input type="hidden" name="ContentObjectID" value="{$nr.contentobject_id}" />
<input id="bouton" type="submit" name="ActionRemove" value="Remove" />
<input type="hidden" name="RedirectURIAfterPublish" value={"/content/view/confirm"|ezurl} /> 
</form>

André R.

Thursday 25 September 2008 1:38:27 am

RedirectURIAfterPublish is for use on publish, there are no equivalent for remove action.
You could create a enhancements request in the eZ Publish Issue tracker, but if you really need this right now, you'll have to create a custom module that takes care of the delete (more or less copy the removeobject.php code) and ads support for a custom redirect url.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Alliance Maliam

Thursday 25 September 2008 2:41:32 am


hi,
even when I use it for redirection after publication, it still does not, I'm always return to the previous node.

<form method="post" action={'/content/action'|ezurl}>
<input type="hidden" name="ContentNodeID" value="{$nr.node_id}" />
<input type="hidden" name="ContentObjectID" value="{$nr.contentobject_id}" />
<input id="bouton" type="submit" name="EditButton" value="Repondre" />
<input type="hidden" name="ContentObjectLanguageCode" value="fre-FR" />

<input type="hidden" name="RedirectURIAfterPublish" value={"/content/view/confirm"|ezurl} /> 

</form>

STEVO +

Sunday 02 August 2009 3:27:37 pm

oops, wrong thread

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 03:30:11
Script start
Timing: Jan 31 2025 03:30:11
Module start 'layout'
Timing: Jan 31 2025 03:30:11
Module start 'content'
Timing: Jan 31 2025 03:30:11
Module end 'content'
Timing: Jan 31 2025 03:30:11
Script end

Main resources:

Total runtime0.0438 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.0058 588.1250151.2109
Module start 'layout' 0.00580.0053 739.3359220.6875
Module start 'content' 0.01110.0308 960.02341,001.8828
Module end 'content' 0.04190.0018 1,961.906333.9922
Script end 0.0437  1,995.8984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00296.5291140.0002
Check MTime0.00122.6935140.0001
Mysql Total
Database connection0.00081.715210.0008
Mysqli_queries0.00347.872830.0011
Looping result0.00000.038710.0000
Template Total0.00133.010.0013
Template load0.00102.298610.0010
Template processing0.00030.683610.0003
Override
Cache load0.00071.592110.0007
General
dbfile0.008319.023180.0010
String conversion0.00000.043640.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