Using 4.7 and i have under my home page bunch of pages most are of type textpage and i also have 3 other different types. Textpage has umbracoNaviHide property only one page in my list has this set to true. I have the following code
so i am listing all pages below home where umbracNaviHide is not true. I except 10 items to be listed however i only get 3. These three are of a doctype that does not have umbracoNaviHide property. If I add the property on that type then it also disappears from list. In my macro for each if i take out the where condition i get all the pages.
umbracoNaviHide issue
Guys,
Using 4.7 and i have under my home page bunch of pages most are of type textpage and i also have 3 other different types. Textpage has umbracoNaviHide property only one page in my list has this set to true. I have the following code
so i am listing all pages below home where umbracNaviHide is not true. I except 10 items to be listed however i only get 3. These three are of a doctype that does not have umbracoNaviHide property. If I add the property on that type then it also disappears from list. In my macro for each if i take out the where condition i get all the pages.
Really really weird? Anyone any ideas?
Regards
Ismail
Hey Ismail.
Try
homePage.Children.Where("Visible")
--Chris
webangelo,
tried that still no joy. only thing that seems to work is if i set it to true then publish then set it to false then publish again.
anyone else seen this?
Regards
Ismail
Seems a bit like
http://our.umbraco.org/forum/developers/razor/22002-Descendants-by-property-value
is working on a reply...