Forums / Developer / Include html file in template

Include html file in template

Author Message

Muhammad Khalid Majeed

Wednesday 02 June 2004 7:12:43 am

I want to include HTML file from other URL in my template file... Is there any way that i can do this... I have already tried {include uri="http://www.xyz.com/test.html"}
but it is not working.

Please help.

Muhammad Khalid
Software Engineer
www.webgurru.net

Ole Morten Halvorsen

Wednesday 02 June 2004 7:20:28 am

One way to do this is with the <IFRAME> tag. (not eZ publish specific)

Example:

<IFRAME SRC="http://www.example.com/example.html">
<!-- Alternate content for non-supporting browsers -->
<p>Your browser does not support IFRAME</p>
</IFRAME>

Another way would be to create a new template operator which would fetch the page and insert it into the template.

Senior Software Engineer - Vision with Technology

http://www.visionwt.com
http://www.omh.cc
http://www.twitter.com/omh

eZ Certified Developer
http://ez.no/certification/verify/358441
http://ez.no/certification/verify/272578

Muhammad Khalid Majeed

Wednesday 02 June 2004 7:27:35 am

I don't want to use IFRAME... Is there anyother way???

Muhammad Khalid
Software Engineer
www.webgurru.net