Page 1 of 1

Including existing HTML file in CMS Made Simple. How?

Posted: Wed Dec 22, 2010 9:34 pm
by Napoleon
Hi all

I've been struggling with this problem for a while now. Here goes:
I have an existing HTML file (from which the user should be able navigate further) and want it included as content on a page. Copying in the HTML code from the file is not an option. The HTML files can not be modified (in principal they can but I will try to avoid it, as these are auto-generated and update frequently).

I have tried:
- iframes: It works, but iframes are just not desirable. There is also a problem with the height.
- UDT, include, readfile etc.: It includes the file, but here there are problems with the links (not using the right path leading to an error message) and the target (it opens it in a new window, but I would prefer it opening in main page).

Any suggestions?

Happy holidays.

/Napoleon.

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

Posted: Wed Dec 22, 2010 10:02 pm
by jmcgin51
according to your previous post on this issue, you solved your problem:

http://forum.cmsmadesimple.org/index.php?topic=48183.0

If there are further issues, please provide specific details of the problems.

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

Posted: Wed Dec 22, 2010 10:51 pm
by Napoleon
I "solved" it using iframes but I'm not satisfied with the solution. I would rather use some kind of php. That is why I'm reposting my question including the things I've tried.

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

Posted: Wed Dec 22, 2010 11:09 pm
by Dr.CSS

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

Posted: Wed Dec 22, 2010 11:36 pm
by Napoleon
I've tried the fetch command, but it has the same problem as include and readfile. It includes the file, but here there are problems with the links (not using the right path leading to an error message) and the target (it opens it in a new window, but I would prefer it opening in main page).

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

Posted: Thu Dec 23, 2010 5:27 am
by jmcgin51
no promises or guarantees, but this guy says he has a fix for the broken link issue.  It will involved installing a new Smarty plugin on your system

just providing for informational purposes:
http://www.newmediacampaigns.com/page/get-remote

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

Posted: Thu Dec 23, 2010 1:50 pm
by Napoleon
Maybe I'm doing it wrong, but I have the problem as with the include (php) command.

The problem is that I have the file, which I would like to include:
root/turneringer/Klub1/KlubTurn.html

In this file the reference is: HREF="Tur/Startliste124.html".
It should go to root/turneringer/Klub1/Tur/Startliste124.html, but instead it tries to go to
root/Tur/Startliste124.html.

Any more ideas?