Reuse content: Server-Side Includes

This chapter provides information on another InterAKT product that comes with the MX Kollection 3 bundle, MX Includes. Through its server behaviors, MX Includes offers an easy way of including reusable code blocks in Dreamweaver. It is very important to know that the code from the included file is not duplicated in the file that includes it. The code, automatically generated in the file where the server behaviors are applied, simply refers/calls on the included file.

By using MX Includes you can:

  1. include one file from your site in another by simply selecting the file to be included.

  2. include files depending on the value of an URL parameter in two ways:
    · by retrieving the necessary data (URL parameter value, file name, page title, meta keywords, meta description) from a database table that stores it.
    · by manually typing the elements mentioned above and creating a list of files with the appropriate information.

When file A is included in file B, and the B Dreamweaver page is previewed in the browser, the content of file A is displayed in the spot of file B where the server behavior was applied. If the case, depending on the value of the URL parameter passed, the content of different files can be displayed in that spot from file B.

Contents

Server-Side Include

Server-Side Includes From Table

Server-Side Includes From List