Work items: 30272, 30280

This commit is contained in:
hartvig
2011-05-02 09:42:34 -02:00
parent 0661842dea
commit 157e96c935
4 changed files with 22 additions and 12 deletions

View File

@@ -2568,13 +2568,15 @@
<Content Include="umbraco\masterpages\umbracoPage.Master" />
<Content Include="umbraco\masterpages\umbracoDialog.Master" />
<Content Include="umbraco\Search\QuickSearchHandler.ashx" />
<Content Include="umbraco\scripting\templates\cshtml\Breadcrumb-DynamicNode.cshtml" />
<Content Include="umbraco\scripting\templates\cshtml\ListSubPagesByDateAndLimit-DynamicNode.cshtml" />
<Content Include="umbraco\scripting\templates\cshtml\Media-DynamicNode.cshtml" />
<Content Include="umbraco\scripting\templates\cshtml\Paging-DynamicNode.cshtml" />
<Content Include="umbraco\scripting\templates\cshtml\Parameters-DynamicNode.cshtml" />
<Content Include="umbraco\scripting\templates\cshtml\SelectChildrenByDocumentType-DynamicNode.cshtml" />
<Content Include="umbraco\scripting\templates\cshtml\SiteMap-DynamicNode.cshtml" />
<Content Include="umbraco\scripting\templates\cshtml\Breadcrumb.cshtml" />
<Content Include="umbraco\scripting\templates\cshtml\ListSubPagesByDateAndLimit.cshtml" />
<Content Include="umbraco\scripting\templates\cshtml\Macro-Parameters.cshtml" />
<Content Include="umbraco\scripting\templates\cshtml\Media.cshtml" />
<Content Include="umbraco\scripting\templates\cshtml\Navigation.cshtml" />
<Content Include="umbraco\scripting\templates\cshtml\Paging.cshtml" />
<Content Include="umbraco\scripting\templates\cshtml\SelectChildrenByDocumentType.cshtml" />
<Content Include="umbraco\scripting\templates\cshtml\SiteMap.cshtml" />
<Content Include="umbraco\scripting\templates\cshtml\UsingRelatedLinks.cshtml" />
<None Include="umbraco\scripting\templates\py\SubpagesAsThumnbnails.py" />
<None Include="umbraco\scripting\templates\py\SubpagesFromAChangeableSource.py" />
<None Include="umbraco\scripting\templates\py\SubpagesFromCurrentPage.py" />

View File

@@ -27,6 +27,7 @@ var values = new Dictionary<string,object>();
values.Add("maxLevelForSitemap", maxLevelForSitemap) ;
var items = node.Children.Where("Visible").Where("Level <= maxLevelForSitemap", values);
if (items.Count() > 0) {
<ul>
@foreach (var item in items) {
<li>
@@ -35,6 +36,7 @@ values.Add("maxLevelForSitemap", maxLevelForSitemap) ;
</li>
}
</ul>
}
}
<div class="sitemap">
@traverse(@Model.AncestorOrSelf())