MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Uživatelský manuál Strana 19

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 28
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 18
Customizing Macromedia Dreamweaver MX 19
Creating new document types
Dreamweaver configuration files specify filename extensions, server models, and other information
for each type of document that Dreamweaver recognizes. To add a new document type to
Dreamweaver or to change information about a known document type, either edit the
DocumentTypes/MMDocumentTypes.xml file, or create another XML file using the same format.
You generally modify and create such files by writing an extension rather than by editing the files by
hand; for more information, see Extending Dreamweaver (Help > Extending Dreamweaver).
Customizing the Tag Chooser
Dreamweaver configuration files provide metadata for organizing tag groupings that appear in the
Tag Chooser. By editing a TagChooser.xml file (in a subfolder of the TagLibraries folder), you can
regroup existing tags and group new tags. In general, you modify and create these files by writing
an extension rather than by editing the files by hand; for more information, see Extending
Dreamweaver (Help > Extending Dreamweaver).
Customizing the appearance of dialog boxes
The dialog box layouts for objects, commands, and behaviors are specified as HTML forms; they
reside in HTML files in the Configuration folder within the Dreamweaver application directory.
You edit those forms just as you would edit any form in Dreamweaver; for more information, see
Dreamweaver Help.
Note: Remember that in a multiuser operating system, you should edit copies of configuration files in your user
configuration folder rather than editing master configuration files; for more information, see “About customizing
Dreamweaver in a multiuser environment” on page 2.
To change the appearance of a dialog box:
1 In Dreamweaver, choose Edit > Preferences, then choose the Code Rewriting category.
2 Deselect the Rename Form Items when Pasting option.
Deselecting this option ensures that form items retain their original names when you copy
and paste them.
3 Click OK to dismiss the Preferences dialog box.
4 On your disk, find the appropriate .htm file in Configuration/Objects, Configuration/
Commands, or Configuration/Behaviors.
5 Make a copy of the file, somewhere other than the Configuration folder.
6 Open the copy in Dreamweaver, edit the form, and save it.
7 Quit Dreamweaver.
8 Copy the changed file back to the Configuration folder, in place of the original. (It’s a good
idea to first make a backup of the original, so you can restore it later if you need to.)
9 Start Dreamweaver again to see the changes.
You should change only the appearance of the dialog box, not how it works; it still must contain
the same types of form elements with the same names, so that the information Dreamweaver
obtains from the dialog box can still be used in the same way.
Zobrazit stránku 18
1 2 ... 14 15 16 17 18 19 20 21 22 23 24 ... 27 28

Komentáře k této Příručce

Žádné komentáře