Skip to end of banner
Go to start of banner

Customise Menu Options Metadata

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 24 Next »

Menuoptions XML file is used for defining the left menu items.

 

What does this section cover?

Menu Options File

Custom left menu items along with their pages' URLs are declared in menuoptions.xml file which must be created under ../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

Create Custom Menu Items

In the following example, three new custom menu items will be defined.

 menuoptions.xml
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&amp;act=itm&amp;fc=loadForm&amp;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=provisioning/localsmsprovider/settings&amp;act=itm&amp;fc=importSubscription&amp;jndi=ejb/COMPANYCRMImportSubscription</menuoptionurl>
			<menuoptionordernum>9</menuoptionordernum>
		</menuoption>
		...
 
 
	</menuoptions>
</menuoptionconfig>
  • No labels