[thelist] "Include" an HTML page?

Anthony Baratta Anthony at Baratta.com
Wed Aug 14 14:00:01 CDT 2002


At 11:48 AM 8/14/2002, Janet Green wrote:
>I have a calendar of events page that needs to appear in several different
>places - on our intranet, on a "member services" page of our site, and in
>the general "about us/events" section of our main site. It's an HTML page.
>The info is the same in all three areas, and the formatting can remain the
>same as far as text treatment, but the stuff surrounding it is different
>each time. Is there any way to write an "include"-type statement (or
>something that will achieve the same purpose) for an HTML page so I don't
>have to update this page three different times when I make my daily
>changes? If not, what's the best way to get this page into a format that
>can be "included"? (Turn it into a functioning ASP page, perhaps?)

Basically you need to chop up the calendar page so that the calendar
content is isolated in one file, like calendar.ssi. Then call it with an
SSI command on the target page where you want the content to appear...

         <!-- #include virtual="/path/to/file/calendar.ssi" -->

You'll have add the shtml or asp extension to the target page in order for
the SSI directive to be used.You can force IIS to parse HTML as sHTML or
ASP. That would save you renaming your pages.

That's about it.
--
Anthony Baratta
President
Keyboard Jockeys

"Conformity is the refuge of the unimaginative."




More information about the thelist mailing list