Filed under: MOSS
Earlier today I was attempting to customize the top navigation bar on a MOSS site. I was following direction which Todd Baginski provided in one of his blog posts. I wrote code identical in function to what he had describe under Taking the Top Navigation one step further, but I found after executing this code that the tab/link pointing to the current site was no long being highlighted. Instead the node I’d just created was being highlighted. After doing some investigating I recalled that when creating the node at the top level the following code was executed:
SPNavigationNode headerMenuItem;
headerMenuItem = new SPNavigationNode(“SharePoint Sites”, “”, false);
The second two arguments in the SPNavigationNode constructor are the cause of the problem. To begin by clicking on this link the user will simply reload the current page since it points directly back to the current page as the third argument indicates that the site is internal. My solution was to make the link external and include a full path back to the page; however if you wish to link to another site than that would obviously fix the problem as well.
No Comments Yet so far
Leave a comment
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>