Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SharePoint writing content to a site navigation programmatically

For a certain sub site in sharepoint I want to add a new section to the navigation on the left handside. For example "My Section". Under "My Section" I wish to some links but I want to control the hml output of the links. For example add my own classes. How would I go aboutdoing this?

like image 598
Rupert Avatar asked May 11 '26 10:05

Rupert


1 Answers

There are actually two questions here:

  1. How to create menu items programmatically. The answer is here: http://itfootprint.wordpress.com/2007/08/07/adding-menu-items-navigation-to-sharepoint-site/
  2. How to display the items you have added in a different manner. To do this, you have to customize the ASP.Net code that accesses the QuickLaunch navigation. Hints could be found here:

    • http://msdn.microsoft.com/en-us/library/ms466994.aspx
    • http://blogs.msdn.com/sharepoint/archive/2007/04/26/customizing-the-quick-launch-menu-adding-fly-out-menus-to-sharepoint-navigation.aspx
    • http://www.aarebrot.net/site/index.php/branding/32-customizingthequicklaunchandnavigationbars
like image 178
naivists Avatar answered May 13 '26 00:05

naivists



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!