Freepages-Help-L ArchivesArchiver > Freepages-Help > 2000-03 > 0953136474
From: Jim Keebaugh <>
Subject: Re: [FreeHelp] SSI - What filetype To Include?
Date: Wed, 15 Mar 2000 08:07:54 -0800
>Are text files the proper filetype to include? The HTML tags worked, but
>is this safe to trust that it will work on all platforms? I never knew
>that HTML tags would work in .txt documents. Obviously I do not want 2
>sets of banners on one page. (Not that I do not absolutely *love* the
>beautiful RootsWeb banners! ;-)
It's early in the morning here, but I'll give this a try. :-)
It doesn't really matter what file type you call your include file. The
server will simply take the contents of the file and paste them into
whatever file you have the #include statement in. The included file
inherits the filetype of the file it is called from. If this file (where
your #include statement resides) is .shtml, then everything in the include
file will be treated as HTML.
I have used an extension of .htmlf (for HTML Fragment) in the past, but
this is only to remind me what's in the file. Use whatever works for you.
The only rule is that any HTML tags must be from the set that is legal
_in_ the body of an HTML page. Well, actually, you can have multiple
<.body> tags, but this has consequences on freepages. If you really want
multiple banners, go ahead. Rootsweb won't mind. :-)
This will work on all platforms that support Server Side Includes. I have
used this trick on NT/IIS servers and on Unix boxes. It's a wonderful way
of doing navigation bars, headers, and footers that stay the same for all
your pages. If you need to change something, you only need to change it in
one place, and it will change in all the pages.
Hope this helps.