More in this section
Forums / Sitefinity SDK / Getting Tags associated to a document

Getting Tags associated to a document

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Michele
    Michele avatar
    147 posts
    11 Jun 2009
    10 May 2011
    Link to this post
    can anyone please tell me how can I get the tags associated to a document using Taxonomies?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    10 May 2011
    Link to this post
    Hi Paolo,

    Here is a sample code that shows how to get all Categories for a given content item ( in my case news)

    var dataItem = App.WorkWith().NewsItems().Get().First();
                var propDesc = OrganizerBase.GetProperty(dataItem.GetType(), "Category") as TaxonomyPropertyDescriptor;
                if (propDesc != null)
                    var taxonIds = propDesc.GetValue(dataItem) as IList<Guid>;
                    var taxonomyManager = TaxonomyManager.GetManager();
                    var taxa = new List<string>();
                    foreach (var taxonId in taxonIds)


    The same code can be used for Tags and all other content items.

    Ivan Dimitrov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

2 posts, 0 answered