RedirectAfterPublish

Author Message

paul bolger

Friday 19 October 2007 12:12:21 am

I'm trying to get RedirectAfterPublish to work, as detailed in the EzPublish Basics book, but it doesn't seem to work... any suggestions welcome!

<form method="post" action={'/content/action'|ezurl} style="margin: .2em 0">
		<input type="submit" name="NewButton" value="Create" class="button" />
		<input type="hidden" name="ClassID" value="29" />
		<input type="hidden" name="NodeID" value="{$this_years_node}" />
		<input type="hidden" name="RedirectAfterPublish" value="/community" />
		<input type="hidden" name="DiscardConfirm" value="0" />
		</form>

Paul Bolger

André R.

Friday 19 October 2007 12:27:57 am

That post name should be 'RedirectURIAfterPublish' from what I can see in kernel/content/action.php, so probably a typo in the book.

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

paul bolger

Friday 19 October 2007 12:47:39 am

Yep, that works. Thanks.

Who does one contact to have it added to the errata for the book?

Paul Bolger

Łukasz Serwatka

Friday 19 October 2007 7:32:09 am

Hi Paul,

You can send this issue to team-publications@ez.no, then will be added on eZ Publish Basics errata page:
http://ez.no/store/books/ez_publish_basics/ez_publish_basics_errata

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Friday 19 October 2007 10:18:40 am

Thanks for pointing this out, Paul. The error has now been posted to the errata page:

http://ez.no/store/books/ez_publish_basics/ez_publish_basics_errata

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 18 2025 15:57:24
Script start
Timing: Jan 18 2025 15:57:24
Module start 'layout'
Timing: Jan 18 2025 15:57:24
Module start 'content'
Timing: Jan 18 2025 15:57:25
Module end 'content'
Timing: Jan 18 2025 15:57:25
Script end

Main resources:

Total runtime1.5024 sec
Peak memory usage4,096.0000 KB
Database Queries67

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 589.0234152.6250
Module start 'layout' 0.00520.0028 741.648439.4453
Module start 'content' 0.00801.4927 781.0938643.0078
Module end 'content' 1.50060.0017 1,424.101616.1719
Script end 1.5023  1,440.2734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2218160.0002
Check MTime0.00130.0894160.0001
Mysql Total
Database connection0.00060.040510.0006
Mysqli_queries1.443696.0891670.0215
Looping result0.00070.0485650.0000
Template Total1.472498.020.7362
Template load0.00240.158620.0012
Template processing1.470097.844120.7350
Template load and register function0.00020.012310.0002
states
state_id_array0.00040.027810.0004
state_identifier_array0.00110.070720.0005
Override
Cache load0.00190.1265210.0001
Sytem overhead
Fetch class attribute can translate value0.00090.059440.0002
Fetch class attribute name0.00220.146980.0003
XML
Image XML parsing0.00460.308440.0012
class_abstraction
Instantiating content class attribute0.00000.001090.0000
General
dbfile0.00400.2677310.0001
String conversion0.00000.000540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs