Creating and Saving an SSI File
The code in an SSI file is simply standard HTML, as well as any
other code you would typically use on a Web page (stylesheets, javascript,
etc.). The only difference between an SSI file and a regular HTML
file is that you do not include the 4 document tags
(<html> <head> <title> and <body>)
in your SSI file.
You can still design your SSI file in Dreamweaver and you can save
it by using any filename. Many web developers find it convenient
to easily keep track of their SSI files by naming them with a .ssi
extension (for example, recent-news.ssi might be a
good filename for our example above).
Remember that SSI files should not include the tags <html>
<head> <title> or <body>.
The easiest way to do this is to create your SSI file as a normal
web page, open it in code view, and delete the document tags.
To edit your SSI on subsequent occasions (assuming you name your
include file with the .ssi file extension), go into
the Edit menu in Dreamweaver and choose Preferences, choose the category for File Types
/ Editors, add the .ssi file extension to the list
and select Dreamweaver as the Primary editor for this file extension.

- Edit > Preferences > File Types / Editors
- Click the + icon above the Extensions list
- Add ".ssi" as a new file extension
- Click the + icon above the Editors list
- Navigate your file system to find the Dreamweaver executable
program on your hard drive (in Windows it's usually Drive C >
Program Files > Macromedia > Dreamweaver MX > Dreamweaver.exe).
Once the file extension .ssi is configured for editing
in Dreamweaver, you can simply double-click the SSI filename in
your file list and it will open in Dreamweaver code view for editing.
|