A blog about SharePoint, Project Server and other Microsoft technologies.

Wednesday, September 25, 2013

Sharepoint - Create Quick Launch menu programmatically

Quick Launch is navigation located on the left side of the screen and it is important part of almost every SharePoint site (marked in red square on the image).

Quick Launch in SharePoint 2013

Links to the Quick Launch can be added manually in Site Settings, but, if you want to automate the process of adding the links, you can do it from c# code.The code is very simple, it consists of reading the Quick Launch object, deleting the existing links in it. And then, after the existing Quick Launch is cleared, putting the new links which we have read from some text file.