You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 21
Next »
Menuoptions XML file is used for defining the left menu items.
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 ../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, the contact information module is declared.
menuoptions.xml
<menuoptionconfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/menuOptions.xsd">
<menuoptions>
<!-- CONTACT INFORMATION -->
<menuoption>
<id>CRM1400</id>
<name>Contact Information</name>
<description>Contact Information</description>
<menuoptionordernum>1</menuoptionordernum>
</menuoption>
<!-- CONTACT INFORMATION > Contact Information -->
<menuoption>
<id>CRM1412</id>
<name>Contact Information</name>
<description>Contact Information</description>
<menuoptionparentid>CRM1400</menuoptionparentid>
<menuoptionordernum>1</menuoptionordernum>
<menuoptionurl>page.do?xml=contactinfo/contactInformation&act=summary</menuoptionurl>
</menuoption>
...
</menuoptions>
</menuoptionconfig>