redirect to full view of the article after its publishing

Author Message

David Zaoui

Monday 16 July 2007 2:53:48 am

Hi,

When i publish an article after editing it, it redirects by default to the folder view which contains the article.
Instead of it, I want to be redirected to the full view of the article that i have just published .
I tried to make this works by adding a "redirectURIafterpublish" hidden field in the edit template, but the problem is that it seems that i can't know by advance the node ID of my future article , so i can't give a valid URI to redirect.

Is it possible to do this redirection into the template or do i have to use a customactionhandler?

Thanks,

David

Kristof Coomans

Monday 16 July 2007 6:15:22 am

Hi David

Take a look at the redirect extension: http://ez.no/community/contribs/applications/redirect

Good luck!

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

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

Main resources:

Total runtime0.0256 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 588.3906151.2422
Module start 'layout' 0.00680.0047 739.6328220.7500
Module start 'content' 0.01150.0125 960.3828997.8672
Module end 'content' 0.02400.0015 1,958.250029.9922
Script end 0.0256  1,988.2422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00259.9270140.0002
Check MTime0.00104.0131140.0001
Mysql Total
Database connection0.00072.790610.0007
Mysqli_queries0.004718.443230.0016
Looping result0.00000.055010.0000
Template Total0.00124.510.0012
Template load0.00093.537010.0009
Template processing0.00030.981110.0003
Override
Cache load0.00062.497110.0006
General
dbfile0.00155.858980.0002
String conversion0.00000.030740.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