I can't seem to get the syntax correct for this to work. I have 3 things I want to test for using the Where(). Could someone help me out?
Test for "Visible" (umbracoNaviHide)
Test if property "secondaryNavGroup" is checked (true/false)
Test if the NodeTypeAlias is alias of type "ExernalLink"
var root = Model.AncestorOrSelf(2);
var listings = root.Children.Where("Visible && secondaryNavGroup != true || NodeTypeAlias == \"ExternalLink\"").Take(12);
Filtering using Where Method and Multiple Tests
I can't seem to get the syntax correct for this to work. I have 3 things I want to test for using the Where(). Could someone help me out?
Test for "Visible" (umbracoNaviHide) Test if property "secondaryNavGroup" is checked (true/false) Test if the NodeTypeAlias is alias of type "ExernalLink"
I would write it like this:
I've not tested, but that is the gist.
is working on a reply...