8. Adding items to the menu
Prev | Chapter 5. Customizing an existing configuration | Next

## 8. Adding items to the menu

1. Add the following menu configuration element to your custom `.xxe` file:

       <menu label="-">
         <insert />
       </menu>

   Attribute `label` is required. The value `-` simply means that you do not want to change the original label of the menu.

2. After the `insert` element, add one or more `separator` and/or `item` and/or `menu` elements. Example:

       <menu label="_DocBook">
         <insert />
         <separator />
         <item label="TEST #_1" icon="xxe-config:common/icons2/help.gif"
               command="alert" parameter="TEST #1" />
         <separator />
         <menu label="SUBMENU">
           <item label="TEST #_2"
                 command="alert" parameter="TEST #2" />
         </menu>
       </menu>

   - The `icon` attribute is optional for `item` elements.

   - The "`_`" character in the `label` attribute is optional. It is used to specify the position of the menu mnemonic, if any.

Prev | Up | Next
7. Adding buttons to the tool bar | Home | 9. Parametrizing the XSLT style sheets used in the Convert Document submenu