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.

eZ debug

Timing: Jan 31 2025 07:31:02
Script start
Timing: Jan 31 2025 07:31:02
Module start 'layout'
Timing: Jan 31 2025 07:31:02
Module start 'content'
Timing: Jan 31 2025 07:31:02
Module end 'content'
Timing: Jan 31 2025 07:31:02
Script end

Main resources:

Total runtime0.0148 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0044 588.1328151.2109
Module start 'layout' 0.00440.0025 739.343836.6484
Module start 'content' 0.00700.0064 775.992285.9375
Module end 'content' 0.01330.0014 861.929729.9922
Script end 0.0148  891.9219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002215.1134140.0002
Check MTime0.00117.2811140.0001
Mysql Total
Database connection0.00085.563210.0008
Mysqli_queries0.002215.047330.0007
Looping result0.00000.101510.0000
Template Total0.00107.010.0010
Template load0.00085.076510.0008
Template processing0.00031.859810.0003
Override
Cache load0.00053.345610.0005
General
dbfile0.001711.619580.0002
String conversion0.00000.040340.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