|Importing external HTML file|
Is it possible to link an external text file containing HTML into the body of other HTML files??
.shtml files can do this, you can do a server side include with this extention on a windows nt server at least.
There are some issues with this, some hosts forbid using it because of security - I dont know exactly what the issues are here.
As far as I know the SSI security issue relates only to EXECuting a script from the ssi call. It's unlikely that would cause a problem if done correctly but in theory it could. Otherwise ssi is ok.
You can do quite a bit with XSSI (extended server-side includes), such as using logic and query strings to determine what you want to include, manipulate templates based on time, browser detection and other stuff. Nice little webmaster tool to have.
SSI isn't default for most web servers so your hosting co. may have to "turn them on" if they don't work for you right away.
Try this url for more info:
Are you interested in the content or the display? If the latter, you can simply use an IFRAME [htmlhelp.com].
Welcome to WebmasterWorld trevpope
What type of server are you on and do you have any scripting languages available? These two answers would give us the information to give you a better answer.
All servers/scripting languages have methods of including files within other files but it is dependant on what you have available.
In case you want to know, if we Homestead users want to add code to our WYSIWYG pages, we use "HTML snippets." There are two things I would like to do using those snippets.
1. Make one navigation HTML file that can be read from an HTML snippet on each page. That way I can change the navigation in the future and only have to do it one time, instead of over 125 times.
2. Place a text messsage in an external file that can be read from an HTML snippet on each page that will display any message such as the copyright date, or whatever message I might want to display on all pages. Much easier than doing one page at a time.
I know you can do something similir using frames, but many people hate frames, so I would like to find another way (that will also work with most browsers).