Redirect on discard or delete

Author Message

Karl H

Friday 12 October 2007 9:11:54 am

Hello,

We've got a simple function allowing members to upload files and also delete these if they want to. When they've uploaded a file, I've used something like

<input type="hidden" name="RedirectURIAfterPublish" value={concat("/page/NODE/")|ezurl} />

to redirect them back to the file-upload section. But when a member deletes a file, or starts to upload/delete a file and discards the process, I can't seem to redirect them anylonger. I've tried:

<input type="hidden" name="RedirectIfDiscarded" value={concat("/page/NODE/")|ezurl} />

in both the template override for the file-upload section and in the removeobject.tpl, which seems to get called in the /content/action process. This doesn't seem to work though, instead it redirects to:

content/view/full/2

I could live with this as a compromise normally, but this site has a different node as root, so it looks very ugly when they get redirected to the eZ root (2).

I've searched the forums, but can't find any solutions which work, so any help is much appreciated!

Karl

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.