Passing a variable to another template

Author Message

Paul Forsyth

Tuesday 10 June 2003 7:16:03 am

I think people have asked this before but not sure if there is an answer at the moment.

I have a page with a link and when i click the link it takes me to an information collector page. I would like to pass some information to the collector page so that i can prefill some fields. In effect i would like post to set to a template variable that my info collector page can use.

Is it possible to do this with current php code (instead of writing more...)? From what i've seen of the php code within kernel/content it doesn't appear so...

Using ez 3.0.2 for this.

Paul

Björn Dieding@xrow.de

Wednesday 11 June 2003 5:26:49 am

How about you make the REQUEST array avialable for all templates?

that should be only one line of code.

Something like

{$module_result.request}

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

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:11:35
Script start
Timing: Jan 18 2025 15:11:35
Module start 'layout'
Timing: Jan 18 2025 15:11:35
Module start 'content'
Timing: Jan 18 2025 15:11:36
Module end 'content'
Timing: Jan 18 2025 15:11:36
Script end

Main resources:

Total runtime1.3478 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 588.0313152.6406
Module start 'layout' 0.00710.0046 740.671939.4609
Module start 'content' 0.01171.3346 780.1328519.8984
Module end 'content' 1.34630.0015 1,300.03138.1563
Script end 1.3477  1,308.1875 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2460160.0002
Check MTime0.00140.1054160.0001
Mysql Total
Database connection0.00050.038910.0005
Mysqli_queries1.302896.6652540.0241
Looping result0.00050.0377520.0000
Template Total1.309897.220.6549
Template load0.00210.156920.0011
Template processing1.307697.021720.6538
Template load and register function0.00020.015410.0002
states
state_id_array0.00160.122010.0016
state_identifier_array0.00230.170720.0012
Override
Cache load0.00180.1311140.0001
Sytem overhead
Fetch class attribute can translate value0.00060.042920.0003
Fetch class attribute name0.00100.074230.0003
XML
Image XML parsing0.00050.036320.0002
class_abstraction
Instantiating content class attribute0.00000.000430.0000
General
dbfile0.00070.0534160.0000
String conversion0.00000.001140.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs