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 to hide the subnav where UmbracoNaviHide is set to true and either the name is "Gallery" or the id which is 1599 in this case
var currentPage = Model; @currentPage.Id;
foreach (var item in @Model.AncestorOrSelf(2).Children.Where("UmbracoNaviHide!=true") && currentPage.Id !=1599 ) {
//output the html here
}
Hi,
Not tested, but you might try a Where statement like this:
.Where("Visible && Id != @0 && NodeTypeAlias != @1", 1599, "Gallery")
-Tom
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Excuding a single node for dropdown
I want to hide the subnav where UmbracoNaviHide is set to true and either the name is "Gallery" or the id which is 1599 in this case
var currentPage = Model;
@currentPage.Id;
foreach (var item in @Model.AncestorOrSelf(2).Children.Where("UmbracoNaviHide!=true") && currentPage.Id !=1599 ) {
//output the html here
}
Hi,
Not tested, but you might try a Where statement like this:
-Tom
is working on a reply...