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 am itterating through the children of a node
@{ var links = Library.NodeById(1472); var count = 0; foreach(var item in links.Children) {
//do stuff
}
However these is one node that I do not want to output. I am aready using umbracoNaviHide for the menu how do I hide this node by alias?
Thanks.
You could try something like this
if (@item.NodeTypeAlias != "theAlias") {
Hi Rocoeh,
Try doing this instead
foreach(var item in links.Children.Where("Visible").Where("NodeTypeAlias == \"yourAlias\"")){@item.Name}
//fuji
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Hiding by alias
I am itterating through the children of a node
@{
var links = Library.NodeById(1472);
var count = 0;
foreach(var item in links.Children)
{
//do stuff
}
}
However these is one node that I do not want to output. I am aready using umbracoNaviHide for the menu how do I hide this node by alias?
Thanks.
You could try something like this
@{
var links = Library.NodeById(1472);
var count = 0;
foreach(var item in links.Children)
{
if (@item.NodeTypeAlias != "theAlias") {
//do stuff
}
}
}
Hi Rocoeh,
Try doing this instead
//fuji
is working on a reply...