SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to create a function which will build 2 level left navigation programmatically. Function should take name/title and url.

Can some body show me how to create using SPNavigation or any other SP class. Thanks.

Left Nav should be like: TermCountry -> Country1(Input to my function with url), Country2(Input to my function with url)

share|improve this question
You want to customize Left Navigation right ? – Arsalan Adam Khatri Aug 22 '13 at 13:51
Yes.after site creation I need to change the existing left nav (which gets craeted by default) with code say feature receiver. – Neel Aug 22 '13 at 13:56
You want the left navigation to work with Terms? Or you want to set the left navigation just once? – Arsalan Adam Khatri Aug 22 '13 at 14:00
It should be like on feature activation.No Terms. – Neel Aug 22 '13 at 14:22


I hope this should help:
Programmatically Add and Remove Items from the Quick Launch Bar

If you want to change the look and feel of the Quick Launch than you can apply CSS as shown in these:
Branding the Quick Launch in SharePoint 2010 – Part I
Brand SharePoint: Quicklaunch - Getting ready to expose CSS (Part 1)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.