Search This Blog

Serenity Site Navigation Changes

site navigation files

Project_name.Web/Modules/yourModule/yourModuleNavigation.cs
Project_name.Web/Modules/Common/Navigation/NavigationItems.cs.

attribute for navigation

auto generated modules are displayed at the bottom of navigation menu. Navigation items are created with special assembly attributes 

[assembly: NavigationLink(int order, string path, Type controller, string icon = null, string action = "Index")]

e.g.
[assembly: NavigationLink(int.MaxValue, "ERP/Store", typeof(MyPages.StoreController), icon: null)]

first parameter is display order for this navigation item. 


second parameter is navigation title in "Section Title/Link Title" format. We can edit these.

third parameter is type controller, this is linked with our 

[assembly: NavigationMenu(int.MaxValue, "Store/Catalog", icon: "fa-folder-open-o")]

No comments:

Post a Comment

Web Statistics