Question

I'm trying to add a custom property to a WebPart to select multiple terms from a TermSet in SharePoint 2013.

I have found this article: http://msdn.microsoft.com/en-us/library/dd584178(v=office.11).aspx
This, however, is tagged for SharePoint 2003.

Then I found this: http://www.dhirajranka.com/?p=420 which is for SharePoint 2010. But it doesn't seem to work either. I can't override the method GetToolParts() cause there seems to be none in the WebPart class.

So now I'm back at the start and I don't know where to begin. I don't have any idea left now. Maybe someone can point me into a direction? I would really appreciate it.

Was it helpful?

Solution 2

I found an answer to my question.
You can write your own EditorPart, which will then be displayed in the EditorPanel when you want to change the WebPart Properties.

An example can be found here:
http://geekswithblogs.net/KunaalKapoor/archive/2012/04/26/web-part-to-execute-caml-query---using-managed-metadata.aspx

Thank you everyone!

PS: @FalakMahmood you were kinda right with the TaxonomyWebTaggingControl :)

OTHER TIPS

You can incorporate TaxonomyWebTaggingControl in your Web Part and bind it with a Tersmset during the run-time:

More info: http://www.vesoftware.in/2012/04/add-taxonomy-field-taxonomywebtaggingco.html

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top