Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 1.02 KB

README.md

File metadata and controls

22 lines (15 loc) · 1.02 KB

MC.MvcQuickNav

See http://mvcquicknav.apphb.com for a live demo.

A series of MVC HTML helpers to generate navigation menus, breadcrumb trails and child navigation controls, supporting an arbitrary level of depth.

All navigation is driven from a single tree of navigation nodes. The user's current URL is compared with each node to determine which is the best match for the their location in the site. This information is then used to determine which sub-tree(s) to render for each control.

All helpers render their markup semantically as a series of nested unordered list tags, with classes added to the active node and those with children to enable the UI to distinguish these to the user.

The HTML rendered by the NavigationMenu() helper is completely semantic and compatible with many pure CSS menu examples found on the web.

An XML provider is included, which parses the navigation tree from an XML file. It uses the same file format as ASP.NET WebForms web.sitemap.

See the example web project for a full exmaple.