Macromedia dreamweaver 8-extending dreamweaver User Manual

Page of 504
Menu commands
195
The following table lists the files you use to create a Menu command.
Modifying the Commands menu
You can add certain kinds of commands to the Commands menu, and change their names, 
without editing the menus.xml file. For more information about menus.xml, see 
.
To create new commands that are automatically placed in the Commands menu, use the 
History panel. Alternatively, you can use the Extension Manager to install new extensions, 
including commands. For more information, see Dreamweaver Help.
To reorder the items in the Commands menu, or to move items between menus, you must 
edit the menus.xml file. 
To rename a command you’ve created:
1.
Select Commands > Edit Command List.
A dialog box appears, listing all the commands whose names you can change. (Commands 
that are in the default Commands menu don’t appear on this list and can’t be edited using 
this approach.)
2.
Select a command to rename.
3.
Enter a new name for it.
4.
Click Close.
Path
File
Description
Configuration/Menus/
menus.xml
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.
Configuration/Menus/
commandname.
htm
Contains the functions required by the 
menu command.
NO
TE
If you add custom menu commands to Dreamweaver, add them at the top level of the 
Menus folder or create a subfolder. The Macromedia folder MM is reserved for the menu 
commands that come with Dreamweaver.
NO
TE
The term “command” has two meanings in Dreamweaver. Strictly speaking, a command 
is a particular kind of extension. In some contexts, however, “command” is used 
interchangeably with “menu item” to mean any item that appears in a Dreamweaver 
menu, no matter what it does or how it’s implemented.