Page 1 of 1

[Solved] Including existing HTML file in CMS Made Simple. How?

Posted: Fri Oct 15, 2010 1:28 am
by Napoleon
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.

Re: Including existing HTML file in CMS Made Simple. How?

Posted: Fri Oct 15, 2010 1:37 am
by jmcgin51
in a udt

Re: Including existing HTML file in CMS Made Simple. How?

Posted: Fri Oct 15, 2010 3:07 am
by calguy1000

Re: Including existing HTML file in CMS Made Simple. How?

Posted: Fri Oct 15, 2010 11:16 am
by Napoleon
calguy1000 wrote: {fetch file='http://yoursite.com/file.html'}
It works (almost) like a charm. It puts in the HTML nicely, but the links in the HTML do not work.
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?

Posted: Fri Oct 15, 2010 3:42 pm
by Dr.CSS
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?

Posted: Fri Oct 15, 2010 3:48 pm
by NaN
I would use an iframe.
Try the {embed} tag.

Re: Including existing HTML file in CMS Made Simple. How?

Posted: Fri Oct 15, 2010 5:33 pm
by Napoleon
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!