You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 28
Next »
Menuoptions metadata file is used to define the left menu items and shortcuts of the application.
What does this section cover?
Custom left menu items along with their pages' URLs are declared in menuoptions.xml file which must be created under <custom_project>/web/WebContent/metadata directory.
All menu option IDs must be defined in modules.xml under <leftmenuoptions>. For more information on creating modules.xml, got to Customise Modules Metadata.
In the following example, three new custom menu items will be defined.
menuoptions.xml
<menuoptionconfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/menuOptions.xsd">
<menuoptions>
<!-- Billing> Provisioning > Local SMS Provider -->
<menuoption>
<id>CUSTOM_LOCAL_SMS_PROVIDER</id>
<name>key_local_sms_provider</name>
<description>key_local_sms_provider</description>
<menuoptionparentid>PROVISIONING</menuoptionparentid>
<menuoptionordernum>1</menuoptionordernum>
</menuoption>
<!-- Billing > Provisioning > Local SMS Provider > Manage Settings -->
<menuoption>
<id>CUSTOM_MANAGE_LOCAL_SMS_PROVIDER_SETTINGS</id>
<name>key_manage_settings</name>
<description>key_manage_settings</description>
<menuoptionparentid>CUSTOM_LOCAL_SMS_PROVIDER</menuoptionparentid>
<menuoptionordernum>1</menuoptionordernum>
<menuoptionurl>page.do?xml=provisioning/localsmsprovider/settings&act=itm&fc=loadForm&jndi=ejb/COMPANYCRMUISmsSettingsDefinition</menuoptionurl>
</menuoption>
<!-- Billing > Subscriptions> Import Subscriptions -->
<menuoption>
<id>CUSTOM_IMPORT_SUBSCRIPTIONS</id>
<name>key_import_subscriptions</name>
<description>key_import_subscriptions</description>
<menuoptionparentid>SUBSCRIPTIONS</menuoptionparentid>
<menuoptionurl>page.do?xml=subscriptions/importSubscriptions&act=itm&fc=importSubscription&jndi=ejb/COMPANYCRMImportSubscription</menuoptionurl>
<menuoptionordernum>9</menuoptionordernum>
</menuoption>
...
</menuoptions>
</menuoptionconfig>
For a full list of metadata menu options attributes, go to Menu options metadata.