Dreamweaver CS4 Resources
|
Insert server-side includes
You can use Dreamweaver to insert server-side includes
in your page.
Insert a server-side include- Select Insert > Server-Side
Include.
- In the dialog box that appears, browse to and select
a file.
By default, a File type of include is inserted.
- To change the type of the include, select
the server-side include in the Document window and change the type
in the Property inspector (Window > Properties), as
follows:
If your server is an Apache web server,
select Virtual. In Apache, Virtual works in all cases, while File
works only in some cases.
If your server is a Microsoft Internet Information
Server (IIS), select File. (Virtual works with IIS only in certain
specific circumstances.)
Note: Unfortunately, IIS won’t allow
you to include a file in a folder above the current folder in the
folder hierarchy, unless special software has been installed on
the server. If you need to include a file from a folder higher in
the folder hierarchy on an IIS server, ask your system administrator
if the necessary software is installed.
For other kinds of servers, or if you don’t know
what kind of server you’re using, ask your system administrator
which option to use.
Change which file is included- Select the server-side include in the
Document window.
- Open the Property inspector (Window > Properties).
- Do one of the following:
Click the folder icon and browse to and
select a new file to include.
In the box, type the path and filename of the new
file to include.
|