How to include html from an external URL?

Author Message

Conor Murray

Friday 14 November 2003 9:41:59 am

I have a need to include dynamically updated forms from another server in some pages... ideally these would be pulled into a table in my template, but I can't find any way of doing this.

The include function only appears to allow local template files to be included... what I'm looking for is something that would work like this:
<table><tr><td>
{include url="http://some.server/form.html"}
</td></tr></table>

The included code does not need to be transformed or inspected in any way by eZp, and the form-processing will be handled by the remote server.

Any help with this would be much appreciated!

Language is a virus - William S Burroughs

Charlotte Buch

Monday 12 January 2004 4:03:12 am

You could use the iframe to get html from an external URL like this:

<iframe src="..."
width="100" height="100" scrolling="no" frameborder="0">
<ilayer src="...">... for Netscape ...</ilayer>
</iframe>

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 19 2025 01:06:42
Script start
Timing: Jan 19 2025 01:06:42
Module start 'layout'
Timing: Jan 19 2025 01:06:42
Module start 'content'
Timing: Jan 19 2025 01:06:43
Module end 'content'
Timing: Jan 19 2025 01:06:43
Script end

Main resources:

Total runtime0.8152 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.0065 590.5703152.6406
Module start 'layout' 0.00650.0042 743.210939.4766
Module start 'content' 0.01070.8025 782.6875487.8438
Module end 'content' 0.81330.0018 1,270.53138.1250
Script end 0.8151  1,278.6563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4059160.0002
Check MTime0.00130.1594160.0001
Mysql Total
Database connection0.00130.156210.0013
Mysqli_queries0.767394.1316540.0142
Looping result0.00050.0648520.0000
Template Total0.777595.420.3888
Template load0.00270.334020.0014
Template processing0.774895.044620.3874
Template load and register function0.00030.031910.0003
states
state_id_array0.00120.142210.0012
state_identifier_array0.00110.134920.0006
Override
Cache load0.00210.2637160.0001
Sytem overhead
Fetch class attribute can translate value0.00050.058320.0002
Fetch class attribute name0.00150.180120.0007
XML
Image XML parsing0.00030.034520.0001
class_abstraction
Instantiating content class attribute0.00000.000820.0000
General
dbfile0.00090.1062100.0001
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
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: 10
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs