Forums / General / Redirect URI after remove
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
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