How to pass a variable from pagelayout.tpl to index.php

Author Message

Harald Svendsen

Friday 12 December 2003 4:58:50 am

Hello

Is it possible to pass a variable from pagelayout.tpl to index.php?

I've created a javascript menu in pagelayout.tpl. When an image is clicked in this menu I need to remember a variable until another button is clicked. I believe I could do this by creating a session-variable in index.php. I've managed to create the session-variable in index.php and to print it in pagelayout.tpl. My problem is that I do not manage to send the value that I need to store from pagelayout.tpl to index.php.

I've tried to set a hidden-variable in pagelayout.tpl, but this isn't working. I've also tried to pass the variable like this: /ezpublish-3.2-1/index.php/mysite?var="content" and like this: /ezpublish-3.2-1/index.php?var="content"/mysite. This will not work.

Appreciate any help!

Regards,
Harald

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 19:06:45
Script start
Timing: Jan 18 2025 19:06:45
Module start 'layout'
Timing: Jan 18 2025 19:06:45
Module start 'content'
Timing: Jan 18 2025 19:06:46
Module end 'content'
Timing: Jan 18 2025 19:06:46
Script end

Main resources:

Total runtime0.7991 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 589.2500152.6406
Module start 'layout' 0.00650.0038 741.890639.4766
Module start 'content' 0.01030.7872 781.3672400.8047
Module end 'content' 0.79740.0017 1,182.17198.1250
Script end 0.7991  1,190.2969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.4892160.0002
Check MTime0.00180.2202160.0001
Mysql Total
Database connection0.00100.127910.0010
Mysqli_queries0.756494.6530460.0164
Looping result0.00050.0572440.0000
Template Total0.757494.820.3787
Template load0.00270.332620.0013
Template processing0.754794.440020.3774
Template load and register function0.00030.033410.0003
states
state_id_array0.00290.361110.0029
state_identifier_array0.00170.210020.0008
Override
Cache load0.00220.2725100.0002
Sytem overhead
Fetch class attribute can translate value0.00180.230110.0018
Fetch class attribute name0.00090.110210.0009
XML
Image XML parsing0.00010.012410.0001
class_abstraction
Instantiating content class attribute0.00000.001010.0000
General
dbfile0.00070.0915100.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
1content/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/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: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs