SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 1570 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"


Note how the HTML comment structure is used to wrap around the SSI directive. This ensures that
browsers ignore the code but servers do not. The file attribute defines the pathname of the file to be
included, relative to the current page. To include a file relative to the current site root, use the virtual
attribute, as follows:

As evident in this example, you can use SSIs to include more than just HTML files??”you can also include
graphics.
With Dreamweaver??™s translator mechanism, server-side includes are visible in the Document window during
the design process. In Dreamweaver, server-side??“include translation is now automatic as long as the Show
Contents of Included File option, found in the Invisible Elements category of Preferences, remains enabled.
One of the major benefits of SSIs is that information can be inserted from the server itself, such as the current
file size or time. One tag, , is used to define a custom variable that is returned when
the SSI is called, as well as numerous environmental variables. An environmental variable is information
available to the server, such as the date a file was last modified or its URL.
Table 29-1 details the possible server tags and their attributes.


Pages:
1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582