Configuring the Webtop Menubar

<!-- 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>

 

你可能感兴趣的:(xml)