我剛剛學習在Orchard CMS 1.7.1中構建模板,並且我正在使用此博客幫助我(http://www.deepcode.co.uk/2011/05/real-world-orchard-cms-part-2-creating.html)。我想要做的是爲2個不同的導航定義2個區域。如何用Orchard CMS定義多個導航區域?
我已經attemped:
var displayMainNav = (Model.Navigation != null);
var displaySubNav = (Model.Navigation != null);
@if (displayMainNav)
{
<div id="layout-navigation" class="zone">
@Display(Model.Navigation)
</div>
}
@if (displaySubNav)
{
<div id="layout-sub-navigation" class="zone">
@Display(Model.Navigation)
</div>
}
而且我得到了2個地方
任何想法相同的導航?
只需要Navigation1和Navigation2 – Hazza