Base solution for your next web application
Open Closed

about menu and sub-menu item #78


User avatar
0
marcos_vera created

hi first i know that not write correctly, i apologize my question is about menu system i have download template with angular and entity framework and try create a menu with submenus. my code is like this

public override void SetNavigation(INavigationProviderContext context)
        {
            context.Manager.MainMenu
                .AddItem(
                    new MenuItemDefinition(
                        "Home",
                        new LocalizableString("HomePage", rdvConsts.LocalizationSourceName),
                        url: "#/",
                        icon: "fa fa-home"
                        )
                ).AddItem(
                    new MenuItemDefinition(
                        "About",
                        new LocalizableString("About", rdvConsts.LocalizationSourceName),
                        url: "#/about",
                        icon: "fa fa-info"
                        )
                ).AddItem(
                    new MenuItemDefinition(
                        "tests",
                        new LocalizableString("TestMenu", rdvConsts.LocalizationSourceName),
                        url: "#/tests",
                        icon: "fa fa-asterisk"
                        )
                .AddItem(
                    new MenuItemDefinition(
                        "CarList",
                        new LocalizableString("CarList", rdvConsts.LocalizationSourceName),
                        url: "#/tests/carList",
                        icon: "fa fa-asterisk"
                        )
                    ));
        }

all the necessary in the localized string has been correctly setting when site run the menu not show the submenu items only the roots (home,about,test) but not the carlist item into test menu. i test with the chrome console and the object abp.nav.menus.MainMenu has all the items and subitems (included car list item). can help me? (Thank you in advance!) greetings


1 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    See this post: #60