Files
LeafWeb/WebCms/Umbraco/Scripting/templates/cshtml/ListChildPagesFromCurrentPage.cshtml
2016-11-07 12:56:17 -05:00

17 lines
513 B
Plaintext

@inherits umbraco.MacroEngines.DynamicNodeContext
@* Ensure that the Current Page has children, where the property umbracoNaviHide is not True *@
@if (Model.Children.Where("Visible").Any())
{
<ul>
@* For each child page under the root node, where the property umbracoNaviHide is not True *@
@foreach (var childPage in Model.Children.Where("Visible"))
{
<li>
<a href="@childPage.Url">@childPage.Name</a>
</li>
}
</ul>
}