`
Roader123
  • 浏览: 94194 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

Configuring the Webtop Menubar

XML 
阅读更多

<!-- Configuring the Webtop Menubar -->
<config>
<scope>
<!--Removing an entire menu -->
<component modifies="menubar:webcomponent/config/library/menubar/menubar_component.xml">
<replace path="menuconfigids">
<menuconfigids>
<id>menubar_file_menu</id>
<id>menubar_edit_menu</id>
<id>menubar_tools_menu</id>
<filter entitlement="recordsmanager,rps">
<id>menubar_rpm_menu</id>
</filter>
</menuconfigids>
</replace>
</component>
<menuconfig modifies="menubar_file_menu:webcomponent/config/library/menubar/menubar_component.xml">
   <!--Adding a menuitem to a menu-->
<insertafter path="menu[name=file_menu].actionmenuitem[name=file_saveas]">
<actionmenuitem
dynamic = "singleselect"
id = "file_rename"
name = "file_rename"
value = "Rename"
action = "rename"
showifinvalid = "true"
/>
</insertafter>
<!--Removing a menuitem from a menu-->
<remove path="menu[name=file_menu].actionmenuitem[name=file_cancelcheckout]"/>
<!--Rearranging menuitems in a menu -->
<remove path="menu[name=file_menu].actionmenuitem[name=file_cancelcheckout]"/>
<insertbefore path="menu[name=file_menu].actionmenuitem[name=file_delete]">
<actionmenuitem
dynamic="multiselect"
name="file_cancelcheckout"
nlsid="MSG_CANCEL_CHECKOUT"
action="cancelcheckout"
showifinvalid="true"
/>
</insertbefore>
<!-- Replacing a command in a menu,change to singleselect-->
<replace path="menu[name=file_menu].actionmenuitem[name=file_delete]">
<actionmenuitem
dynamic="singleselect"
name="file_delete"
nlsid="MSG_DELETE"
action="delete"
hotkeyid="HOTKEY_DELETE"
showifinvalid="true"
/>
</replace>
</menuconfig>
</scope>
</config>

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics