0
fadijb created
4 Answer(s)
-
0
hi
Please share code of your
IMenuContributor
-
0
public async Task ConfigureMenuAsync(MenuConfigurationContext context) { if (context.Menu.Name != StandardMenus.Main) { return; } var moduleMenu = AddModuleMenuItem(context); //Do not delete `moduleMenu` variable as it will be used by ABP Suite! AddMenuItemNationalities(context, moduleMenu); AddMenuItemCountries(context, moduleMenu); AddMenuItemCities(context, moduleMenu); } private static ApplicationMenuItem AddModuleMenuItem(MenuConfigurationContext context) { var moduleMenu = new ApplicationMenuItem( MainSettingMenus.Prefix, context.GetLocalizer<MainSettingResource>()["Menu:MainSetting"], "~/MainSetting", icon: "fas fa-cogs" ); //Add main menu items. context.Menu.Items.AddIfNotContains(moduleMenu); return moduleMenu; }
-
0
You can check the login status, permissions, features..
var moduleMenu = new ApplicationMenuItem( MainSettingMenus.Prefix, context.GetLocalizer<MainSettingResource>()["Menu:MainSetting"], "~/MainSetting", icon: "fas fa-cogs" ) .RequireAuthenticated() .RequirePermissions(CmsKitAdminPermissions.GlobalResources.Default) .RequireFeatures() .RequireGlobalFeatures();
-
0
var moduleMenu = new ApplicationMenuItem( MainSettingMenus.Prefix, context.GetLocalizer<MainSettingResource>()["Menu:MainSetting"], //"~/MainSetting", icon: "fas fa-cogs" );
I just remove this line
//"~/MainSetting",
its woking thank you