My Web application has a very deep structure in terms of menu tree, having one menu option going down 3 or 4 levels.
For example, consider the following tree from the menu item Application:
- Applicat开发者_JS百科ion
- Modules
- Sections
- Section_Ads
- Ads_Config
- Section_Ads
- Sections
- Modules
By entering an Application named As01 inside the Application menu item we go down to see its modules. Consequently if we create or edit a Module, inside we can create Sections for it and inside those sections we can add advertisement and so on.
So let's imagine we are inside the Section_ads menu item and we chose the Application As01, the Module Mod01, the Section Sect01 and now we see the respective Section_Ads pages for it. I would like to show the user a path with links to point where the user is in the application, like this:
As01 -> Mod01 -> Sect01
By having the above, he could easily go back to the page of the application As01 to review its Modules or go back to the Modules page for that application to choose another sector or even create a new one.
How can this be achieved in an elegant and efficient way?
Since you're asking under ASP.NET MVC and not Javascript, I would recommend searching for existing questions on breadcrumbs in ASP.NET MVC. And here is what you get!
How can dynamic breadcrumbs be achieved with ASP.net MVC?
And there are also helpful results in the related questions on that question as well.
search for breadcrumps implementation, number of APIs help achieve it. Yahoo APi is one.
精彩评论