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

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 00:33:23
Script start
Timing: Jan 31 2025 00:33:23
Module start 'layout'
Timing: Jan 31 2025 00:33:23
Module start 'content'
Timing: Jan 31 2025 00:33:23
Module end 'content'
Timing: Jan 31 2025 00:33:23
Script end

Main resources:

Total runtime0.0271 sec
Peak memory usage8,192.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.3750151.2422
Module start 'layout' 0.00540.0046 739.6172220.7500
Module start 'content' 0.01000.0155 960.3672997.7734
Module end 'content' 0.02550.0015 1,958.140633.9922
Script end 0.0271  1,992.1328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002910.5365140.0002
Check MTime0.00124.3352140.0001
Mysql Total
Database connection0.00072.602710.0007
Mysqli_queries0.003713.560330.0012
Looping result0.00000.036910.0000
Template Total0.00124.310.0012
Template load0.00093.289210.0009
Template processing0.00031.014410.0003
Override
Cache load0.00062.307410.0006
General
dbfile0.00145.176480.0002
String conversion0.00000.022040.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