0
omital created
Hi Every thing work correctly when I use "context.Manager.MainMenu" like this
context.Manager.MainMenu.AddItem(baseTable)
but when I add item to "context.Manager.Menus"
var md = new MenuDefinition("um", new LocalizableString("Persons", ISDConsts.LocalizationSourceName));
context.Manager.Menus.Add(new System.Collections.Generic.KeyValuePair<string, MenuDefinition>("test", md));
then "abp.nav" in java script file is null
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
2 Answer(s)
-
0
Your menu's name should be same in dictionary and menu definition. Try this:
var md = new MenuDefinition("um", new LocalizableString("Persons", ISDConsts.LocalizationSourceName)); context.Manager.Menus["um"] = md;
If not works, see Logs in Web project's Logs folder.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Work like a charm. Thank you man :) ;)
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)