Displaying subContent depending on CurrentNode within a loop
Hi Guys,
I have some issues on a sub Navigation which lies within another loop. The idea here is to display sub Content of the current page when user click on the url to access the page.
Here is my code any idea how to get this working ?
var sub = @Model.AncestorOrSelf(3).Children.Where("Visible"); @foreach(dynamic i in sub){string subUrl = (i.Children.Where("Visible").Count() >0)? i.Children.First().Url: i.Url; <li class='@Library.If(i.IsAncestorOrSelf(Model), "current","")'><a href="@Library.If(i.HasValue("sicomExternalLink"), i.sicomExternalLink, @subUrl)" target="@Library.If(i.Where("externalUrl") && i.HasValue("sicomExternalLink"), "_blank","_self")">@i.Name</a> @if(Model.Children.Count()>0){
foreach(dynamic j in i.Children){
@j.Name
}}</li>}
Displaying subContent depending on CurrentNode within a loop
Hi Guys,
I have some issues on a sub Navigation which lies within another loop. The idea here is to display sub Content of the current page when user click on the url to access the page.
Here is my code any idea how to get this working ?
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.