The Roman Catholic Diocese of Saint Cloud
    home       parishes       schools       email

Diocesan Server Help

Page Design: Include SSI

triangle bullet Server Help
triangle bullet Hosting Services
triangle bullet Restrictions
triangle bullet Email Users
triangle bullet Web Page Design
    triangle bullet Standards
    triangle bullet Email Links
    triangle bullet Email Forms
    triangle bullet Forms
    triangle bullet SSI's
    triangle bullet Include SSI
    triangle bullet Counters
    triangle bullet Calendars
    triangle bullet Uploading
    triangle bullet SiteSearch
    triangle bullet Podcasting
triangle bullet Web Site Admin
    triangle bullet favicon.ico
    triangle bullet robots.txt
    triangle bullet Error Pages
    triangle bullet Setting Counters
    triangle bullet Redirects
    triangle bullet Realms
    triangle bullet WebDAV
    triangle bullet Logs

The include SSI directive is very useful for inserting a standard header, footer, JavaScript, image map, or other element on mutliple pages. This SSI directive allows the element to be stored in a single text file.

Each web page that should display the standard elment simply needs the SSI directive pasted in the appropriate position on the page (rather than pasting the entire standard element).

Whenever the web server accesses that web page, the server will automatically insert the standard element in place of the SSI directive. This makes future editing of the standard element extremely easy, since it only needs modified in one file, rather than dozens of individual HTML files.

NOTE: The 'include' directive (and all other SSI's) can only be used in pages with the .shtml file extension.

DescriptionTag
as it should appear in HTML
Include
Web server inserts the contents of text file before serving the page.
<!--#include virtual="file_identifier"-->

In the include tag, the portion labeled file_identifier should be changed to specify a text file on the diocesan web server.

This example demonstrates how smoothly the two files come together. This web page is stored as a file named include.shtml on the diocesan web server. However, the file on the server does NOT contain the paragraph below. Instead, that paragraph is stored in a seperate file titled "include_sample.txt". This web page contains a code telling the server to insert the contents of "include_sample.txt" before sending it to a viewer's web browser.

This paragraph comprises the contents of a file titled "include_sample.txt". There is only one paragraph in this document. If you are seeing this paragraph as part of a larger document, then that document must be inserting this file via the Include SSI command.