htm page
Permalink
I have a program that creates .htm pages from excel.
It creates a folder with the required files and a .htm file which is the page I need to display.
How do I display it?
It I display it as an external page it does not have the template wrap.
I will have several of these pages, do I use a sinple page? If so can someone help step me through setting up of the 1st one?
Thank You
It creates a folder with the required files and a .htm file which is the page I need to display.
How do I display it?
It I display it as an external page it does not have the template wrap.
I will have several of these pages, do I use a sinple page? If so can someone help step me through setting up of the 1st one?
Thank You
When I do what you say the htm page does not display correctly.
I believe it is because it needs files that are in a support directory.
If I create a page with an external link it displays correctly(except it does not have my template)so I know that it is a good htm page.
Is there another way? If this was a conventional html website, not c5. it would not be a problem to dispaly. Seems like I must be doing something wrong
Is there a way to tell it where it's support file are?
Thank You
I believe it is because it needs files that are in a support directory.
If I create a page with an external link it displays correctly(except it does not have my template)so I know that it is a good htm page.
Is there another way? If this was a conventional html website, not c5. it would not be a problem to dispaly. Seems like I must be doing something wrong
Is there a way to tell it where it's support file are?
Thank You
Okay, I understand. Well, the problem is really that a Content Management System (like Concrete5) is not built to handle what you're trying to do -- you can't just take static files and import them into the CMS. In the CMS, every page is stored in a database and links to support files are handled within the system.
But if you want to keep trying this approach, what you can do is put all of the support files in a certain directory in your site, then change all of the links to those in the htm files to be "absolute" instead of "relative" (so if your site is athttp://yourdomain.com, and you put the support files in a folder at the top-level of your web server called "supportfiles", then the "src" or "href" or whatever to those files would be "http://yourdomain.com/supportfiles")
This is a really hacky solution though and might not work depending on what else you want to do -- really the system is not meant to do what you want, unfortunately.
But if you want to keep trying this approach, what you can do is put all of the support files in a certain directory in your site, then change all of the links to those in the htm files to be "absolute" instead of "relative" (so if your site is athttp://yourdomain.com, and you put the support files in a folder at the top-level of your web server called "supportfiles", then the "src" or "href" or whatever to those files would be "http://yourdomain.com/supportfiles")
This is a really hacky solution though and might not work depending on what else you want to do -- really the system is not meant to do what you want, unfortunately.
I apologize, but it seems like if there is a htm file on my server that works provided I make a c5 page to an external link, seems like there should be a way to make the external link show inside a block.
Would some sort of I frame do this?
Thank You
Would some sort of I frame do this?
Thank You
It's really hard to say exactly what's going on without seeing the code. Can you post one of your htm files as an attachment?
Here is a htm file along with its supporting files
Thank You
Thank You
I don't see any external links in this file, so I'm not sure I understand that part of your question.
As for putting this HTML into a C5 page, well there's quite a few things you'll need to modify.
First of all, you have a lot of javascript and styles in the <head>, so those need to be moved out into the <body> (because you'll only want to paste in the stuff between the <body> and </body> tags -- if you paste in the <head> then there will be 2 <head>'s in the page -- one for the C5 theme and one for this -- and that is invalid HTML).
Second, you are including jquery, which C5 already does, so if you include it yourself you will get errors because one copy of jquery will be overriding the other.
Third, you need to do what I said up above about changing all of the relative "src" and "href" paths to absolute URL's which point to some directory on your server where you're storing those.
As I said, the CMS is not really designed to do what you want it to do so this is not going to be a simple solution, but it's certainly doable -- just requires a bit of work and a lot of testing and tweaking to get it right.
Good luck.
-Jordan
As for putting this HTML into a C5 page, well there's quite a few things you'll need to modify.
First of all, you have a lot of javascript and styles in the <head>, so those need to be moved out into the <body> (because you'll only want to paste in the stuff between the <body> and </body> tags -- if you paste in the <head> then there will be 2 <head>'s in the page -- one for the C5 theme and one for this -- and that is invalid HTML).
Second, you are including jquery, which C5 already does, so if you include it yourself you will get errors because one copy of jquery will be overriding the other.
Third, you need to do what I said up above about changing all of the relative "src" and "href" paths to absolute URL's which point to some directory on your server where you're storing those.
As I said, the CMS is not really designed to do what you want it to do so this is not going to be a simple solution, but it's certainly doable -- just requires a bit of work and a lot of testing and tweaking to get it right.
Good luck.
-Jordan
If you can do this manually, the easiest thing is to make a page in c5 and add an "HTML" block to it, then paste in *most* of the htm file into the HTML block -- I say *most* because you do NOT want to paste in the whole thing -- I think a safe bet is to take everything in between the <body> and </body> tags (not including those body tags themselves).
Depending on the design of the htm pages and the design of your c5 theme, this may or may not "just work".
To automate this process is a bit more complicated, and would require some amount of custom coding.
Hope that helps!
-Jordan