Adobe 38040334 - Dreamweaver CS3 User Manual page 26

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

Advertisement

<documenttype
id="DWTemplate_PHP"
internaltype="DWTemplate"
dynamicid="PHP_MySQL"
winfileextension="php.dwt"
macfileextension="php.dwt"
file="Default.php.dwt">
<title>PHP Template</title>
<description><![CDATA[Dreamweaver PHP Template document]]></description>
</documenttype>
When a Dreamweaver user creates a new blank template of type DWTemplate_PHP, Dreamweaver lets the user
create PHP server behaviors in the file. Furthermore, when the user creates instances of the new template, the user
can create PHP server behaviors in the instance.
In the previous example, when the user saves the template, Dreamweaver automatically adds a .php.dwt extension to
the file. When the user saves an instance of the template, Dreamweaver adds the .php extension to the file.
Document extensions and file types
By default, Dreamweaver shows all the file types it recognizes in the File > Open dialog box. After creating a new
document type, extension developers need to update the appropriate Extensions.txt file. If the user is on a multiuser
system (such as Windows XP, Windows 2000, or Mac OS X), the user has another Extensions.txt file in the user
Configuration folder. The user must update the Extensions.txt file because it is the instance that Dreamweaver looks
for and parses.
The location of the user's Configuration folder depends on the user's platform.
Windows 2000 and Windows XP platforms use the following location:
hard disk:\Documents and Settings\username\Application Data\Adobe\Dreamweaver 9\Configuration
Note: In Windows XP, this folder may be inside a hidden folder.
Mac OS X platforms use the following location:
hard disk:Users/username/Library/Application Support/Adobe/Dreamweaver 9/Configuration
If Dreamweaver cannot find the Extensions.txt file in the user's Configuration folder, Dreamweaver looks for it in
the Dreamweaver Configuration folder.
Note: On multiuser platforms, if you edit the copy of Extensions.txt that resides in the Dreamweaver Configuration
folder and not the one in the user's Configuration folder, Dreamweaver is not aware of the changes because
Dreamweaver parses the copy of the Extensions.txt file in the user's Configuration folder, not the file in the Dreamweaver
Configuration folder.
To create a new document extension, you can either add the new extension to an existing document type or create a
new document type.
To add a new extension to an existing document type:
Edit MMDocumentTypes.xml.
1
Add the new extension to the
2
type.
and
winfileextension
macfileextension
DREAMWEAVER CS3
Extending Dreamweaver
attributes of the existing document
20

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents