How to set(from the CMS Content editor) the property Visible(of a page) to be false
Hi,
In one of my pages I loop through all children and want to show just these that are Visible. I want some of them to be hidden.
I need to set the Visible property to false from the CMS.
umbraco has a built-in property which can be used while iterating the nodes.
Add to your document types a property of type true/false with
the alias "umbracoNaviHide"
While iterating the nodes you can check the property with the method IsVisible() called on the current node (node.IsVisible()) or using lambda expression nodes.Where(x=>x.IsVisible()) for filtering
here you can find some documentation (paragraph Complex querying)
How to set(from the CMS Content editor) the property Visible(of a page) to be false
Hi,
In one of my pages I loop through all children and want to show just these that are Visible. I want some of them to be hidden. I need to set the Visible property to false from the CMS.
How could I do that?
Regards, Boris
Hi Boris,
umbraco has a built-in property which can be used while iterating the nodes.
Add to your document types a property of type true/false with the alias "umbracoNaviHide"
While iterating the nodes you can check the property with the method IsVisible() called on the current node (node.IsVisible()) or using lambda expression nodes.Where(x=>x.IsVisible()) for filtering
here you can find some documentation (paragraph Complex querying)
Hope this help
BR
Stefano
is working on a reply...