The Forsyth CallMe Extension - Anyone extended it further? (variables between templates)

Author Message

Paul Wilson

Wednesday 10 March 2004 4:24:15 am

Hi,

I must express huge gratitude to Paul Forsyth for posting the Callme Extension (see: http://pubsvn.ez.no/viewcvs/community/trunk/extension/callme/) ... I've been experimenting and trying to pass variables between templates for way too long. Only recently discovered the callme extension.

I have used the "Callme" extension and can now pass variables from a form in one template to another template. I am trying to get slightly different functionality from it.

Question - Sending Output to a Content Node?
Paul has used the callme function to go to a module (ie /callme/thankyou etc). Has anyone used it to load a content node (eg ../callme/thankyou/234, where 234 is nodeId? The callme function has the effect of pulling the site location out of my nav system, so I'd like to add a NodeID parameter so that can be used by the module (not sure how yet). Has anyone got any clues or examples?

Question - URL Post Parameters?
I also want to add Post parameters to links so that I can pass variables to a template. In Paul's example of the callme function he has links/buttons which produce urls like "http://www.pobox.co.uk/callme/callme?about=Linux%20basic%20server", but mine do not show this post variable information (ie just .../callme/callme/). Again, any clues, insights or examples?

Many thanks

- Paul

Paul Forsyth

Wednesday 17 March 2004 3:08:09 am

Both of your questions relate to passing in other variables to the script. Which is your preferred way? Via the url, or by using the GET/POST methods of the form submit. Both are simple to do.

paul

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 22:13:57
Script start
Timing: Jan 18 2025 22:13:57
Module start 'layout'
Timing: Jan 18 2025 22:13:57
Module start 'content'
Timing: Jan 18 2025 22:13:58
Module end 'content'
Timing: Jan 18 2025 22:13:58
Script end

Main resources:

Total runtime0.6010 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.0066 589.5391152.6875
Module start 'layout' 0.00660.0027 742.226639.5547
Module start 'content' 0.00930.5902 781.7813497.0781
Module end 'content' 0.59950.0015 1,278.85948.0469
Script end 0.6010  1,286.9063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.5756160.0002
Check MTime0.00140.2367160.0001
Mysql Total
Database connection0.00140.233410.0014
Mysqli_queries0.558292.8725540.0103
Looping result0.00050.0838520.0000
Template Total0.571695.120.2858
Template load0.00210.341420.0010
Template processing0.569594.757920.2848
Template load and register function0.00010.023910.0001
states
state_id_array0.00100.158910.0010
state_identifier_array0.00080.137820.0004
Override
Cache load0.00160.2582160.0001
Sytem overhead
Fetch class attribute can translate value0.00080.139220.0004
Fetch class attribute name0.00120.196430.0004
XML
Image XML parsing0.00250.414120.0012
class_abstraction
Instantiating content class attribute0.00000.001030.0000
General
dbfile0.00260.4296160.0002
String conversion0.00000.001240.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/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
2content/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: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs