Adobe 38040334 - Dreamweaver CS3 User Manual page 25

Extending dreamweaver
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

Element Type
Tag
Attribute
title
(subtag)
description
(subtag)
Note: When the user saves a new document, Dreamweaver examines the list of extensions for the current platform that
are associated with the document type (
string in the list and uses it as the default file extension. To change this default file extension, you must reorder the exten-
sions in the comma-separated list so the new default is listed first.
When Dreamweaver starts, it reads all document type definition files and builds a list of valid document types.
Dreamweaver treats any entries within the definition files that have nonexistent server models as nonserver model
document types. Dreamweaver ignores entries that have bad contents or IDs that are not unique.
If, while scanning the Configuration/DocumentTypes folder, Dreamweaver finds no document type definition files
or if any of the definition files appear to be corrupt, Dreamweaver closes with an error message.
Dynamic templates
You can create templates that are based on dynamic document types. These templates are called dynamic templates.
The following two elements are essential to defining a dynamic template:
• The value of the
internaltype
• The
attribute must be set, and the value must be a reference to the identifier of an existing dynamic
dynamicid
document type.
The following example defines a dynamic document type:
<documenttype
id="PHP_MySQL"
servermodel="PHP MySQL"
internaltype="Dynamic"
winfileextension="php,php3"
macfileextension="php,php3"
file="Default.php">
<title>PHP</title>
<description><![CDATA[PHP document]]></description>
</documenttype>
Now, you can define the following dynamic template, which is based on this
Required
Description
Yes
The string that appears as a category item under Blank Document
in the New Document dialog box. You can place this string directly
in the definition file or point to it indirectly for localization
purposes. For more information on localizing this string, see "Local-
ized strings" on page 21.
Formatting is not allowed, so HTML tags cannot be specified.
No
The string that describes the document type. You can place this
string directly in the definition file or point to it indirectly for local-
ization purposes. For more information on localizing this string, see
"Localized strings" on page 21.
Formatting is allowed, so HTML tags can be specified.
and
winfileextension
attribute for the new document type must be
). Dreamweaver selects the first
macfileextension
DWTemplate
dynamic document type:
PHP_MySQL
DREAMWEAVER CS3
Extending Dreamweaver
.
19

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents