I am trying to create an Orchard theme and want to customize the main menu. All I need to do is add an id attribute to the main ul element. I can understand that I need to copy the Menu.cshtml view in my theme and in the Razor view have this line of code:
By the way I had to dig in the Orchard code to find this out. It is amazing how little documentation there is to Orchard.
Anyways, I was wondering is there a way to do this without having to override the view?
I don't want to clutter my theme with additional views just to add an attribute to the part (model, whatever it is called in Orchard). I looked at a theme, which had a LayoutFilter.cs, which was adding some weird routing for the layout, but I could not find
any information on how action filters can be used in Orchard. I added my own LayoutFilter.cs to the theme so that I can try and customize the Menu Model but some weird stuff happened when I was debugging it, the debugger was picking the LayoutFilter from the
I hope this is not too much to ask, but I am trying to learn as many things as possible about Orchard by just achieving this simple task of adding an attribute to the main menu ul element.