Menu Commands - Adobe 38040334 - Dreamweaver CS3 User Manual

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

Advertisement

• Server behaviors (listed in the Plus (+) pop-up menu on the Server Behaviors panel) are specified in ServerBe-
haviors.xml files, in subfolders of the ServerBehaviors folder.
• Server formats (listed in the Plus (+) pop-up menu in the Edit Format List dialog box) are specified in
ServerFormats.xml files, in subfolders of the ServerFormats folder.
• Items in the formats pop-up menu for a binding in the Bindings panel are specified in Formats.xml files, in
subfolders of the ServerFormats folder. You can add entries to this menu from inside Dreamweaver by using the
Add Format dialog box.
• The Tag Library Editor dialog box menu commands are specified in the
TagLibraries/TagImporters/TagImporters.xml file.
• Menu commands for parameters in the Generate Behavior dialog box, which is part of the Server Behavior
Builder, are specified in Shared/Controls/String Menu/Controls.xml.
• Items for context menus associated with ColdFusion Components are specified in
Components/ColdFusion/CFCs/CFCsMenus.xml.
• Items for context menus associated with ColdFusion data sources are specified in
Components/ColdFusion/DataSources/DataSourcesMenus.xml.
• Items for context menus associated with JavaBeans are specified in Components/Jsp/JavaBeans/
JavaBeanMenus.xml.
• Items for context menus associated with various server components are specified in XML files, in subfolders of
the Components folder.

Menu commands

Menu commands make menus more flexible and dynamic. As with regular commands, menu commands can
perform almost any kind of edit to the current document, other open documents, or any HTML document on a local
drive. The menu commands API expands the regular commands API to accomplish several tasks that are related to
displaying and calling the command from the menu system.
Menu commands are HTML files that are referenced in the
The body section of a menu commands file can contain an HTML form that accepts options for the command (for
example, how a table should be sorted and by which column). The head section of a menu commands file contains
JavaScript functions that process form input from the body section and control the edits to the user's document.
Menu commands are stored in the Configuration/Menus folder inside the Dreamweaver application folder.
The following table lists the files you use to create a menu command.
Path
Configuration/Menus/
Configuration/Menus/
Note: If you add custom menu commands to Dreamweaver, add them at the top level of the Menus folder or create a
subfolder. The MM folder is reserved for the menu commands that come with Dreamweaver.
File
menus.xml
commandname.htm
attribute of a
file
menuitem
Description
Contains a structured list of menu bars, menus,
menu commands, separators, shortcut lists, and
keyboard shortcuts. Modify this file to add new
menus and menu commands.
Contains the functions required by the menu
command.
DREAMWEAVER CS3
Extending Dreamweaver
tag in the menus.xml file.
146

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents