Hi Using your great tutorial <a class="postlink" href="https://github.com/aspnetboilerplate/sample-blog-module">https://github.com/aspnetboilerplate/sample-blog-module</a>, I build my own module, and my menu "Odyssey" shows above the default "Dashboard".
How can I push my menu "Odyssey" just as 2nd one, i.e between **Dashboard**and Administration
4 Answer(s)
-
0
Hi,
context.Manager.MainMenu.Items.MoveMenuItemAfter("Odyssey", PageNames.App.Tenant.Dashboard);
I assume your menu item's unique name is "Odyssey". This code should go after your menu is created (in AppNavigationProvider).
Have a nice day.
-
0
-
0
You should write this code in your application's navigationprovider, not module's. Because, probably your module is initialized before dashboard menu item is created. When this code runs, both menu items should be exist.
-
0
That worked, but my modularizatation concept was compermised.