views:

423

answers:

1

How to make a custom Sharepoint global navigation with Security Trimming?

A: 

If you want add security trimmed link to the top navigation menu then it’s required to make internal navigation node. Through UI it’s not possible but alternatively in case of MOSS can be used audiences.

If making navigation link by code then isExternal argument must be set to false:

SPNavigationNodeCollection nodes = site.RootWeb.Navigation.TopNavigationBar;
nodes.AddAsFirst(new SPNavigationNode("Site Name", "/SiteUrl/default.aspx", false));
EG