How to customize the Back Office menu

The Akeneo back office uses the Oro Platform Application Menu.

The NavigationBundle automatically processes a YAML configuration file which must be named navigation.yml and located in Resources/config directory of the registered bundle.

The configuration is placed under oro_menu_config tree.

Organize the Navigation trees

The next step is to put together a tree for these menu items. All trees are built under the tree key.

# /src/Acme/Bundle/AppBundle/navigation.yml
oro_menu_config:
    items: # ...
    tree:
        application_menu:
            children:
                system_tab:
                    children:
                        reference_data:
                            children:
                                brand: ~
                                manufacturer: ~
        usermenu:
            children:
                brand: ~

Akeneo PIM is provided with two trees where items can be added.

  • application_menu: the horizontal main menu on top of the back office;
  • usermenu: the menu that pops up when the user clicks on their username in the top right corner of the screen.

In the example above, items are also registered in an already existing subtree System tab. With the given configuration, the menu Reference Data will appear under the existing System tab of the application menu.

Here is the list of all available options for a tree:

tree:
    <menu_alias>                            # menu alias
        type: <menu_type>                   # menu type code. Link to menu template section.
        extras:                             # extra parameters for container renderer
            brand: <string>
            brandLink: <string>
        children:                           # submenu items
            <links to items hierarchy>