Macromedia dreamweaver 8-extending dreamweaver Manuel D’Utilisation

Page de 504
Extensible document types in Dreamweaver
41
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:
title
(subtag)
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 
Formatting is not allowed, so HTML 
tags cannot be specified.
description
(subtag)
No 
The string that describes the document 
type. 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 
.
Formatting is allowed, so HTML tags 
can be specified.
NO
TE
When the user saves a new document, Dreamweaver examines the list of extensions for 
the current platform that are associated with the document type (winfileextension 
and macfileextension). Dreamweaver selects the first string in the list and uses it as 
the default file extension. To change this default file extension, you must reorder the 
extensions in the comma-separated list so the new default is listed first.
Element Type
Required Description 
Tag
Attribute