In this series of posts I will talk about using Taxonomy fields in SharePoint 2010 development. They are a funky bunch and don´t work quite as you would expect. I will talk about the following subjects:
Introduction
Part I: Declaration and initialization
Part II: Using taxonomyfields programmatically (you are reading it!)
Part III: Searching taxonomy fields
The other part will be online in the next couple of weeks.
In this part I will talk about using the TaxonomyFields in your code. Read part I of my series to read about how to declare a TaxonomyField and create a contenttype containg the field.
Creating the basis
If I create a custom list on my site called TaxList and add the contenttype I’ve created in part 1 of this series to the Content Types of the list, I get a list with the following settings: More...
71ee9ae6-8237-4710-90ab-4134e1da4956|2|4.5
In this series of posts I will talk about using Taxonomy fields in SharePoint 2010 development. They are a funky bunch and don´t work quite as you would expect. I will talk about the following subjects:
Introduction
Part I: Declaration and initialization (you are reading it!)
Part II: Using taxonomyfields programmatically
Part III: Searching taxonomy fields
The other parts are now also online!
Declaration and initialization
The problem with declaring TaxonomyFields programmatically is that you’ll have to do all the wiring of the field by hand. If you fail to follow all the neccesary steps, strange behaviour will occur and your TaxonomyField will not behave properly. In this post I try to give you a practical guide how to properly initialize a TaxonomyField. If you want to know why exactly all this is necessary, send me a message or do some more searching on the Internet. In the introduction post I’ve posted a link to a good blogpost about this.
For this example i'm using a new Visual Studio project and choosing the "Empty SharePoint project" template.
More...
dccf0245-adcd-4957-96a7-2ad57490f93b|1|5.0