Hi all
I'm new to the world of web designing (and HTML codes) and therefore need help. I'm looking for a solution similar to (but for CMS Made Simple):
or
Where I have an existing HTML file and want it included as content on a page. Copying in the HTML code from the file is not an option.
Thanks in advance.
/Napoleon.
[Solved] Including existing HTML file in CMS Made Simple. How?
[Solved] Including existing HTML file in CMS Made Simple. How?
Last edited by Napoleon on Fri Oct 15, 2010 5:33 pm, edited 1 time in total.
Re: Including existing HTML file in CMS Made Simple. How?
in a udt
include("http://yoursite.com/file.html");
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Including existing HTML file in CMS Made Simple. How?
{fetch file='http://yoursite.com/file.html'}
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: Including existing HTML file in CMS Made Simple. How?
It works (almost) like a charm. It puts in the HTML nicely, but the links in the HTML do not work.calguy1000 wrote: {fetch file='http://yoursite.com/file.html'}
In the fetched HTML there is for example this line:
[...] HREF="Turneringer/Startliste65.html" [...].
This means that it tries to go to the "root"/Turneringer/Startliste65.html, while the actual position is
"root"/turneringer/Klub3/Turneringer/Startliste65.html.
This is my fetch command:
{fetch file='http://localhost/cmsmadesimple/Turnerin ... bTurn.html'}
Should I specify a path somewhere? Again, it is not an option to modify the HTML code, as these are auto-generated and update frequently.
If I'm opening the HTML (KlubTurn.html) in a browser all links work.
/Napoleon.
Re: Including existing HTML file in CMS Made Simple. How?
Can you at least modify it enuf to add in the of it like in the default templates?...
Re: Including existing HTML file in CMS Made Simple. How?
I would use an iframe.
Try the {embed} tag.
Try the {embed} tag.
Re: Including existing HTML file in CMS Made Simple. How?
And it is solved!
Dr.CSS: I would rather not do that, as the HTML file is changed/updated every week.
iframe did the trick. I had a problem with the footer disappearing, but solved it by closing the iframe again:
Thanks to all of you!
Dr.CSS: I would rather not do that, as the HTML file is changed/updated every week.
iframe did the trick. I had a problem with the footer disappearing, but solved it by closing the iframe again:
Thanks to all of you!