|
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.
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. |