Adobe 38040334 - Dreamweaver CS3 User Manual page 144

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

Advertisement

<menu>
Description
Provides information about a menu or submenu to appear in the Dreamweaver menu structure.
Attributes
name, {app}, id, {platform}, {showIf}
The name of the menu as it will appear on the menu bar. To set the menu's access key (mnemonic) in
name
Windows, use an underscore (_) before the access letter. The underscore is automatically removed on the
Macintosh.
The name of the application in which the menu is available. Not currently used.
app
The menu ID for the menu. Every ID in the file should be unique.
id
Indicates that the menu should appear only on the given platform. Valid values are
platform
Specifies that the menu should appear only if the given Dreamweaver enabler is the value
showIf
possible enablers are:
_SERVERMODEL_ASP, _SERVERMODEL_ASPNET, _SERVERMODEL_JSP,
(for all versions of Macromedia ColdFusion from Adobe),
_SERVERMODEL_CFML
UltraDev version 4 of ColdFusion),
_VIEW_LAYOUT, _VIEW_EXPANDED_TABLES,
a comma (which means AND) between the enablers. You can specify NOT with
menu to appear only in Code view for an ASP page, specify the attribute as
_SERVERMODEL_ASP".
Contents
This tag can contain one or more
tags (to create submenus) and standard HTML comment tags.
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 the following letter is
name
the command's access key (mnemonic), for Windows only.
Used by Dreamweaver to identify the item. This ID must be unique throughout the menu structure. If you
id
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.
_SERVERMODEL_PHP, _FILE_TEMPLATE, _VIEW_CODE, _VIEW_DESIGN,
and
_VIEW_STANDARD
tags, and one or more
menuitem
tag.
menubar
_SERVERMODEL_CFML_UD4
. You can specify multiple enablers by placing
. For example, if you want the
"!"
showIf="_VIEW_CODE,
tags. It can also contain other
separator
DREAMWEAVER CS3
138
Extending Dreamweaver
.
"win"
"mac"
and
. The
true
(for
menu

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents