add new zone

Topics: Writing themes
May 14, 2011 at 2:30 PM

Hello! I need to add new zone. I am using next theme http://orchardproject.net/gallery/List/Themes/Orchard.Theme.Contoso

In Layout.cshtml I have found

next code:

[code]@if (Model.TripelFirst != null || Model.TripelSecond != null || Model.TripelThird != null) {
<div id="layout-tripel" class="group">@* as in beer *@
    @if (Model.TripelFirst != null) {
    <div id="tripel-first">
        @Zone(Model.TripelFirst)
    </div>
    }
    @if (Model.TripelSecond != null) {
    <div id="tripel-second">
        @Zone(Model.TripelSecond)
    </div>
    }
    @if (Model.TripelThird != null) {
    <div id="tripel-third">
        @Zone(Model.TripelThird)
    </div>
    }
</div>
}[/code]

After it I decide to add by same maner new zone:

    @if (Model.TripelQuad!= null) {
    <div id="tripel-quad">
        @Zone(Model.TripelQuad)
    </div>
    }

But it's do not appear on site, and I do not see it in admin panel

http://pic2net.ru/view/v/19cbbf2602980725053e643d363bb02f.jpg

May 14, 2011 at 3:09 PM

You need to add the zone name into your Theme.txt for it to surface in the widgets system.

May 14, 2011 at 3:11 PM
randompete wrote:

You need to add the zone name into your Theme.txt for it to surface in the widgets system.

Yes, I forgot to mention, but I have added it:

Zones: Header, Navigation, HomeFeaturedImage, HomeFeaturedHeadline, Messages, Content, ContentAside, TripelFirst, TripelSecond, TripelThird, TripelQuad, Footer