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

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
Napoleon
Forum Members
Forum Members
Posts: 12
Joined: Fri Oct 15, 2010 1:17 am

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

Post 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.
Last edited by Napoleon on Fri Oct 15, 2010 5:33 pm, edited 1 time in total.
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

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

Post by jmcgin51 »

in a udt
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

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

Post by calguy1000 »

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.
Napoleon
Forum Members
Forum Members
Posts: 12
Joined: Fri Oct 15, 2010 1:17 am

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

Post 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.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

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

Post by Dr.CSS »

Can you at least modify it enuf to add in the of it like in the default templates?...
NaN

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

Post by NaN »

I would use an iframe.
Try the {embed} tag.
Napoleon
Forum Members
Forum Members
Posts: 12
Joined: Fri Oct 15, 2010 1:17 am

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

Post 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!
Post Reply

Return to “CMSMS Core”