how do i redirect after form submission?

Author Message

James Ward

Tuesday 18 May 2004 12:50:03 pm

3.3-4 (3.3 release 4) rev 5412

I am having some trouble redirecting after a form submission. I tried adding the following line to my standard/templates/content/collectedinfomail.tpl:

{set-block scope=root variable=redirect_to_node_id}2{/set-block}

the redirect didn't occur. Also tried adding that line to standard/templates/content/collectedinfomail/form.tpl and no go. Any help is appreciated.

working at www.wardnet.com
blogging at www.jamesward.ca

akiL Mussa

Wednesday 19 May 2004 4:17:57 am

try this:

<input type="hidden" name="RedirectURI" value={"content/view/full/2"|ezurl} />

Better explanation on this page:
http://ez.no/ez_publish/documentation/customization/tips_tricks/redirecting_after_content_publishing

James Ward

Wednesday 19 May 2004 7:26:13 am

Thanks for the quick response. My concern is that your solution will redirect everytime anything is submitted to the site. This is just a feedback forum which I would like to redirect to a Thank You infopage. Is there no way for me to just alter the behaviour of this form?

Thanks in advance.

working at www.wardnet.com
blogging at www.jamesward.ca

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 06:22:07
Script start
Timing: Jan 31 2025 06:22:07
Module start 'layout'
Timing: Jan 31 2025 06:22:07
Module start 'content'
Timing: Jan 31 2025 06:22:08
Module end 'content'
Timing: Jan 31 2025 06:22:08
Script end

Main resources:

Total runtime0.7925 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 588.2500151.2266
Module start 'layout' 0.00470.0024 739.476636.6797
Module start 'content' 0.00710.7846 776.1563925.4375
Module end 'content' 0.79160.0008 1,701.593811.8125
Script end 0.7924  1,713.4063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3955160.0002
Check MTime0.00150.1857160.0001
Mysql Total
Database connection0.00070.091510.0007
Mysqli_queries0.747494.3105570.0131
Looping result0.00050.0588550.0000
Template Total0.765696.620.3828
Template load0.00190.236320.0009
Template processing0.763796.363720.3818
Template load and register function0.00120.146610.0012
states
state_id_array0.00110.138310.0011
state_identifier_array0.00080.106720.0004
Override
Cache load0.00150.1949170.0001
Sytem overhead
Fetch class attribute can translate value0.00040.053220.0002
Fetch class attribute name0.00240.297940.0006
XML
Image XML parsing0.00050.065020.0003
class_abstraction
Instantiating content class attribute0.00000.001050.0000
General
dbfile0.00080.1056160.0001
String conversion0.00000.001040.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/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: 13
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs