Answers Search Help
Boston University home page
Dreamweaver: Managing A Site
 
 
    Library Items
 
 
 
 
 
    Templates
 
 
 
 
 
 
 
    Site Strategies
 
 
 
 
    Server-Side Includes
 
 
 
    Also See
   
   
   
   

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.

  1. Edit > Preferences > File Types / Editors
  2. Click the + icon above the Extensions list
  3. Add ".ssi" as a new file extension
  4. Click the + icon above the Editors list
  5. 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.

 

WebCentral Using Publishing Learning Training Consulting WebCentral
Answers Search Help
NIS  |  OIT  |  Boston University  |   January 9, 2007