Specifies that the menu should appear only if the given Dreamweaver enabler is
showIf
the value
. The possible enablers are:
true
_SERVERMODEL_JSP, _SERVERMODEL_CFML
_SERVERMODEL_CFML_UD4
_FILE_TEMPLATE, _VIEW_CODE, _VIEW_DESIGN, _VIEW_LAYOUT,
_VIEW_EXPANDED_TABLES,
placing a comma (which means AND) between the enablers. You can specify NOT with
. For example, if you want the menu to appear only in Code view for an ASP page,
"!"
specify the attribute as
Contents
This tag can contain one or more
contain other
tags (to create submenus) and standard HTML comment tags.
menu
Container
This tag must be contained in a
Example
<menu name="_File" id="DWMenu_File">
<!-- menuitem, separator, menu, and comment tags here -->
</menu>
<menuitem>
Description
Defines a menu command for a Dreamweaver menu.
Attributes
name, id, {app}, {key}, {platform}, {enabled}, {arguments}, {command},
{file}, {checked}, {dynamic}, {isdomrequired}, {showIf}
The menu command name that appears in the menu. An underscore indicates that
name
the following letter is the command's access key (mnemonic), for Windows only.
Used by Dreamweaver to identify the item. This ID must be unique throughout the
id
menu structure. If you add new menu commands to menus.xml, ensure uniqueness by
using your company name or another unique string as a prefix for each menu command's
ID.
The name of the application in which the menu command is available. Not currently
app
used.
184
Menus and Menu Commands
_SERVERMODEL_ASP, _SERVERMODEL_ASPNET,
(for UltraDev version 4 of ColdFusion),
and
_VIEW_STANDARD
showIf="_VIEW_CODE, _SERVERMODEL_ASP".
tags, and one or more
menuitem
tag.
menubar
(for all versions of Macromedia ColdFusion),
. You can specify multiple enablers by
separator
_SERVERMODEL_PHP,
tags. It can also
Need help?
Do you have a question about the DREAMWEAVER 8-EXTENDING DREAMWEAVER and is the answer not in the manual?