Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
How do I get the next level (subpages / children) of each page?
@{ var root = CurrentPage.AncestorOrSelf(2); } <ol> <li><a href="/"><img src="~/img/home.svg"></a></li> @foreach (var page in root.Children.Where("Visible")) { <li class="@(page.IsAncestorOrSelf(CurrentPage) ? "current" : null)"> <a href="@page.Url">@page.Name</a> </li> } </ol>
Solved it :-)
@foreach (var subpage in page.Children.Where("Visible")) { <li><a href="">@subpage.Name</li> }
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Navigation - Subpages / children - Macro
How do I get the next level (subpages / children) of each page?
Solved it :-)
is working on a reply...