Customizing @Zone(Model.Navigation) - v1.7

Topics: Customizing Orchard, General
Sep 6, 2013 at 1:30 PM
Hi,
This is my first topic and my first week tweaking Orchard 1.7.

I'd like to know where should I change or implement to add a "id" to <nav> and to add a class to <ul> which goes just below <nav> tag

Thanks in advance.
Developer
Sep 8, 2013 at 4:59 AM
I assume you're referring to the HTML generated by the Menu widget and its shapes.
If so, you can override these shape templates (Razor views) in your theme and do things such as adding HTML attributes.
The template you're after is Menu.cshtml, which lives in Orchard.Core/Shapes/Views. Copy that file to your theme's views folder and make modifications as needed.
A helpful tool that might help you identify which shape templates to override is the Shape Tracing feature (you'll find it via the Modules admin menu item, from where you can enable it).