Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I've seen alot of razor examples using Where("Visible")?
just wondering what Visible is as a keyword..
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.
The section around visible starts 7:34 into the movie
Hope the video answers your question.
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
Thanks Rich & Dennis!
yep spot on!
Link is broken.
Here is another helpful link explaining it all:
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted