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
I want a sibling menu like this:
As you can see I want the menu to the left to remain after choosing a sibling node like that. How can I achieve that?
Hi,
To get the siblings I normally go up to the parent and then call the children.
var p = CurrentPage.Parent; var siblings = p.Children;
Regards, L
And how can I display it in a list?
<ul> @foreach(var sibling in siblings) { <li><a href="@sibling.Url">@sibling.Name</a></li> } </ul>
Thank you sooo much!!! <3
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Creating a sibling menu
I want a sibling menu like this:
As you can see I want the menu to the left to remain after choosing a sibling node like that. How can I achieve that?
Hi,
To get the siblings I normally go up to the parent and then call the children.
Regards, L
And how can I display it in a list?
Regards, L
Thank you sooo much!!! <3
is working on a reply...