Server-Side Include

The Server-Side Include server behavior allows the site developer to include a file in the current Dreamweaver page. The file to be included can be modified later, the new modifications being seen in the page where this server behavior is applied.

This feature is useful when you have to include the same elements in multiple pages. You can do this in one operation now instead of repeating the same steps over and over again for each page.

This server behavior is accessible from the Application panel, Server Behaviors -> + -> MX Kollection -> Server-Side Includes -> Server-Side Include. The user interface has one tab:

 

To set the dialog box options, use the following steps:

  1. In the Filename text box enter the file to be included in the current Dreamweaver page. You can click the Browse button to select the file. Choose a file from the site structure so there won't be any problems when you publish the site. If you want to include a file outside the site structure, you should copy it somewhere in the root folder and then upload it onto the server.
  2. The three buttons in the top right corner of the interface offer you the next functionality:
    · Click OK when you are done configuring the server behavior.
    · Click Cancel to exit without applying the new settings.
    · The Help button opens this help page.