Forums / Developer / redirecting to a different page (node) on form submission??

redirecting to a different page (node) on form submission??

Author Message

M Farhan

Thursday 12 June 2003 4:20:57 am

Hello Everyone,

Can anyone tell as to how to set the page(node) which is to be shown after form submission??, at present it shows the same form page on form submission.

Thanks in Advance.

MF.

Jo Henrik Endrerud

Friday 13 June 2003 6:52:50 am

You can make a hidden field in the form called RedirectURI containing the page you wish the user to be taken to after submission

Jo Henrik Endrerud | System Developer @ Seeds Consulting | http://www.seeds.no

Gavin Heaton

Tuesday 17 June 2003 10:12:27 pm

I have tried this approach in a number of different ways but have had no luck as yet. Has anyone had a better result?

Bård Farstad

Tuesday 17 June 2003 11:08:10 pm

If you mean to redirect to another page after information is fetched with information collection. Then you can add this to the collectedinfomail.tpl:

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

Replace 2 with the id of your desired node.

--bård

Documentation: http://ez.no/doc

eZ debug

Timing: Jan 18 2025 10:39:35
Script start
Timing: Jan 18 2025 10:39:35
Module start 'content'
Timing: Jan 18 2025 10:39:35
Module end 'content'
Timing: Jan 18 2025 10:39:35
Script end

Main resources:

Total runtime0.0206 sec
Peak memory usage2,048.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 589.0859180.8125
Module start 'content' 0.00720.0055 769.898493.8828
Module end 'content' 0.01270.0077 863.781370.7031
Script end 0.0205  934.4844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002210.5465120.0002
Check MTime0.00104.9272120.0001
Mysql Total
Database connection0.00062.738410.0006
Mysqli_queries0.004220.296640.0010
Looping result0.00000.096220.0000
Template Total0.007436.110.0074
Template load0.00094.157410.0009
Template processing0.006631.961810.0066
Override
Cache load0.00062.776610.0006
General
dbfile0.002411.5320100.0002
String conversion0.00000.029030.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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