Things that should be easy: Hiding a link from a Publishing sites Top Navigation Bar

In a MOSS publishing site (can I say CMS 2007?) there is an editor in which you can change the navigation elements shown on the Top Navigation.

At first glance you would assume that it would be easy to manupilate elements on that top navigation bar through code. Infact Todd has an in-depth article showing you how to add and remove items from the navigation bar.

But have you tried to hide an element. Its not as easy at it would seem. TheSPNavigationNode.IsVisible propperty is readonly, and I am yet to find an approach to hide an element.

Strangely the AreaNavigation.aspx UI makes it seem like a piece of cake.

 

Cross-posted from tariqayad.com

Print | posted on Thursday, March 08, 2007 9:42 AM

Comments on this post

# re: Things that should be easy: Hiding a link from a Publishing sites Top Navigation Bar

Requesting Gravatar...
please will you pub bebo on for me
Left by lucy on Feb 06, 2008 12:21 AM

# re: Things that should be easy: Hiding a link from a Publishing sites Top Navigation Bar

Requesting Gravatar...
yju7j7
Left by joe on Feb 07, 2008 4:13 AM

# myspace

Requesting Gravatar...
i m so hood
Left by caleb on Jun 05, 2008 3:59 AM

# myspace

Requesting Gravatar...
dace boy ur ugly
Left by caleb on Jun 05, 2008 4:00 AM

Your comment:

 (will show your gravatar)
 
Please add 3 and 7 and type the answer here: