tag:blogger.com,1999:blog-3924739636407907202.post2630376602581713537..comments2023-10-07T05:59:41.036-03:00Comments on HunabKu: MVC3 : set active menu by controller nameFabio Maulohttp://www.blogger.com/profile/13558454874302740335noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-3924739636407907202.post-58915023379192593532011-12-28T19:28:27.196-03:002011-12-28T19:28:27.196-03:00I personally prefer a more trivial solution for ex...I personally prefer a more trivial solution for example you can add dummy class name to you body / head that is formatted as "{Controller}_{Action}"<br /><br />For each menu item add a class that represent it (i am sure you already have one to control its specific style and image)<br /><br />and not you can control the the entire UI using native CSS, just set your styling for example toRan Davidovitzhttps://www.blogger.com/profile/04728100184410610704noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-75394078339256279252011-11-11T07:29:40.098-03:002011-11-11T07:29:40.098-03:00Because I'm talking about MVC3 templates comin...Because I'm talking about MVC3 templates coming with VisualStudio, what is important is the concept, which is:<br />take some information from the view-context (area/controller/action) then match it with an attribute of the anchor (in this case I have used the href but is the same with "myCoolAttribute").Fabio Maulohttps://www.blogger.com/profile/13558454874302740335noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-16644040302708477382011-11-11T01:23:14.184-03:002011-11-11T01:23:14.184-03:00What we should to do if our main menu contains a g...What we should to do if our main menu contains a group of controllers? I mean that we have admin area (with or without mvc's areas) and have following controllers: UserRightsController, UsersController, etc. And we needn't to have `Rights` and `Users` menus and only `Administration`.hazzikhttps://www.blogger.com/profile/02278053558276208312noreply@blogger.com