@foreach (var item in Model.Content.Children.Where("Visible"))
{
<a title="@item.Name" href="@item.Url">@item.Name</a>
}
This does not give the result I need.
Q: How can I get all the all siblings pages from current page?
Try this:
@var siblings = Model.Content.Siblings()
@foreach (var item in siblings.Where(x => x.Id != Model.Content.Id))
{
<a title="@item.Name" href="@item.Url">@item.Name</a>
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With