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.
Including existing HTML file in CMS Made Simple. How?
Re: Including existing HTML file in CMS Made Simple. How?
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.
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?
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?
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?
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
just providing for informational purposes:
http://www.newmediacampaigns.com/page/get-remote
Re: Including existing HTML file in CMS Made Simple. How?
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?
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?