div surrounding a zone

Jan 18, 2011 at 10:33 PM

Hi folks

Ive just started looking at Orchard and wondered where the


<div class="zone zone-navigation">...</zone>

that surrounds the <nav> element is created and how i can modify this (if i wanted to). 

David


Coordinator
Jan 18, 2011 at 10:40 PM

The default rendering is produced by the Zone shape method in CoreShapes.cs, and can be overridden with a Zone.cshtml file in a theme.

Coordinator
Jan 18, 2011 at 10:42 PM

Oh, and zones also have an alternate with the zone name. So if you have a zone named foo, you can change its rendering with a zone-foo.cshtml template.

Feb 10, 2011 at 8:07 PM

Thanks for this info. What method call would go in Zone.cshtml in order to display the content?

Feb 10, 2011 at 8:12 PM

Heh, worked this out about a minute after I asked.

@DisplayChildren(Model)