0

So I am wanting 3 different navigations and I only see how to add 2 though in the snippet area in Design Manager.

I am comfortable with C# but not very knowledgable in Sharepoint. Does anyone know how to grab a specific term set by reference ID?

1 Answer 1

1

First you create a TaxonomySession for the current site:

var TSession = new TaxonomySession(SPContext.Current.Site);

Then you can use the TermStores Property to look up your term store using its GUID:

var Termstore = TSession.TermStores[termStoreID];

You can also do the lookup based on the term store name if that is easier to use.

1
  • Ok. So once I have the object and create the variable, how would I display it. For example in this case I have an id of 123456 that will go and get the navigation based on that it. What command should I use to have Sharepoint display it just like any other navigation? Mar 26, 2013 at 22:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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