
194 Menus and Menu Commands
■ 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
file attribute of a menuitem tag
in the menus.xml file. 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.
Komentarze do niniejszej Instrukcji