Add a new entry in the menu under "Enterprise"

#1

Hi, in the migration from 7.2 to 7.6 version I have a problem with the visualization of a new entry under a sub menu of section “Enterprise”. In the old version was enough to add the new entry in the following files:
seed/PageGroups.json
Enterprise/Application.c3ui

In 7.6 it seems to not be enough, what I should do?

Thanks,
Laura

0 Likes

#2

You should add the new page in the SubMenu.c3ui file which you will file under the components folder.
here’s an example of this file:

ui module YourApp {
    component SubMenu {
        "component": "menu.SideSubMenu",
        "renderTo": "#side-sub-menu",
        "menuTitle": "{~YourApp.Application.Title~}",
        "menu": [
            {
                "items": [
                    {
                        "id": "newpage",
                        "title": "{~YourApp.newpage.title~}",
                        "appId": "YourApp",
                        "pageId": "NewPage"
                    },
                   . . . // more pages
                ]
            }
        ]
    }
}

In fact, starting from 7.6 how the menu works is the only difference compared to 7.2.

0 Likes

#3

Hi Bachir,
with this further modification the entry is shown.

Thanks!
Laura

1 Like