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

Including existing HTML file in CMS Made Simple. How?

Post 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.
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 »

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.
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 »

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.
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 »

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).
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 »

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
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 »

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

Return to “CMSMS Core”