The Visible is doingso youhiddenmenu itemsin navigation forexample.Ibelievethataliasonthe document type shouldbeumbracoNaviHide, like whenyou workwithXSLT. I found a video on Umbraco.tv, wheretheyexplain thevisiblekeyword.
Whilst 'Visible' is a great keyword to use it's hard for people without previous Umbraco experience to make the connection. It's always been recommended in Umbraco to use the alias 'umbracoNaviHide' (be careful of casing) as the standard property name when you wish to show/hide a node.
This way when packages or code snippets were released, everyone would use the same keyword universally.
However, when Razor got introduced I'm guessing a wrapper got added that uses the "visible" keyword and in the background this is changed to umbracoNaviHide as Tom says.
Visible?
Hi Guys,
I've seen alot of razor examples using Where("Visible")?
just wondering what Visible is as a keyword..
Hi Tom,
The Visible is doing so you hidden menu items in navigation for example. I believe that alias on the document type should be umbracoNaviHide, like when you work with XSLT. I found a video on Umbraco.tv, where they explain the visible keyword.
http://umbraco.com/help-and-support/video-tutorials/umbraco-fundamentals/razor/listing-subpages-from-current-page
The section around visible starts 7:34 into the movie
Hope the video answers your question.
/Dennis
Hi,
Whilst 'Visible' is a great keyword to use it's hard for people without previous Umbraco experience to make the connection. It's always been recommended in Umbraco to use the alias 'umbracoNaviHide' (be careful of casing) as the standard property name when you wish to show/hide a node.
This way when packages or code snippets were released, everyone would use the same keyword universally.
However, when Razor got introduced I'm guessing a wrapper got added that uses the "visible" keyword and in the background this is changed to umbracoNaviHide as Tom says.
Some other Umbraco special keywords are listed here http://our.umbraco.org/wiki/reference/umbraco-best-practices/umbraconavihide
Hope that helps
Rich
Thanks Rich & Dennis!
yep spot on!
Link is broken.
Here is another helpful link explaining it all: https://umbraco.tv/videos/umbraco-v7/implementor/working-with-umbraco-data/querying-umbraco-data-with-razor/umbraconavihide-and-visible/documentation/
is working on a reply...