Using iframe

Author Message

Salvatore Guarino

Monday 28 November 2005 8:47:10 am

I'm not enough able with eZpublish to create a real extension fully integrated with the CMS, therefore now I'm using an IFRAME to include an external php page in my eZpublish site. I created a template containing this code using an override for a specified node:

<IFRAME src="/folder/test.php" frameborder="0" height="800" width="550">Your browser doesn't support iframe.</IFRAME>

It works, but I have a little problem: how can I pass "get" or "post" variables to the iframe? eZpublish intercept this variables and I cannot use them in the iframe. There is a workaround?

Thanks, Salvatore.

ludo thomas

Wednesday 07 December 2005 2:51:28 am

I'm not sure I've understand what U want to do but if you need to pass a variable to your frame have you tried this?

<IFRAME src="/folder/test.php?myvar={$myvar}".............................>

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:05:09
Script start
Timing: Jan 18 2025 19:05:09
Module start 'layout'
Timing: Jan 18 2025 19:05:09
Module start 'content'
Timing: Jan 18 2025 19:05:10
Module end 'content'
Timing: Jan 18 2025 19:05:10
Script end

Main resources:

Total runtime0.8327 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.0056 587.7891152.6094
Module start 'layout' 0.00560.0031 740.398439.3984
Module start 'content' 0.00870.8223 779.7969501.9531
Module end 'content' 0.83100.0016 1,281.75008.2031
Script end 0.8326  1,289.9531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4063160.0002
Check MTime0.00130.1573160.0001
Mysql Total
Database connection0.00060.072310.0006
Mysqli_queries0.781493.8409540.0145
Looping result0.00050.0605520.0000
Template Total0.784994.320.3924
Template load0.00280.341720.0014
Template processing0.782093.916220.3910
Template load and register function0.00010.010110.0001
states
state_id_array0.00190.224910.0019
state_identifier_array0.00140.173920.0007
Override
Cache load0.00240.2834120.0002
Sytem overhead
Fetch class attribute can translate value0.00080.094020.0004
Fetch class attribute name0.00110.134140.0003
XML
Image XML parsing0.00250.303520.0013
class_abstraction
Instantiating content class attribute0.00000.000740.0000
General
dbfile0.00350.4164230.0002
String conversion0.00000.000940.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/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
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.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