I have dynamic navigation using the Razor below, but for some reason the if statment that includes Where("Visible") is not working. These children still show up in the navigation. Suggestions?
Hi Steve, assuming you have the umbracoNaviHide property on the page in question and it is checked? Does it work if you separate the visible statement from the rest like below?
Amir, Thanks! that was it! Works fine once I add the second "Where()." I don't think I've ever had problems with this syntax before, but I will have to go check some of my other navigation to assure it is functioning properly now. I still don't understand why it doesn't take this format though:
Where Visible Not Working Correctly
I have dynamic navigation using the Razor below, but for some reason the if statment that includes Where("Visible") is not working. These children still show up in the navigation. Suggestions?
Hi Steve, assuming you have the umbracoNaviHide property on the page in question and it is checked? Does it work if you separate the visible statement from the rest like below?
Children.Where("Visible").Where("NodeTypeAlias!= \"AboutRoseLevel4Page\"")
-Amir
Amir, Thanks! that was it! Works fine once I add the second "Where()." I don't think I've ever had problems with this syntax before, but I will have to go check some of my other navigation to assure it is functioning properly now. I still don't understand why it doesn't take this format though:
Thanks again!
is working on a reply...