Monday, March 19, 2012

Sharepoint Menu Manipulation Headers versus Links

Everything gets created as a link, if you want just a header, use the following code:

SPNavigationNode header = new SPNavigationNode("Header", "");
header = nodes.AddAsLast(header);
header.Properties["NodeType"] = "Heading";
header.Properties["BlankUrl"] = "true";
header.Update();

No comments:

Post a Comment