More in this section

Forums / Developing with Sitefinity / Filetring Tags

Filetring Tags

2 posts, 0 answered
  1. Sravani
    Sravani avatar
    5 posts
    24 Apr 2014
    17 May 2014
    Link to this post


    I have used the Sitefinity tags widget , its working fine. The challenge is I need to filter the tags based on the blog post. Even though I have set the content type to blogPosts there are many tags displayed on the page. Can anyone please tell me how could I filter the tags to display only few of them.

     Thanks & Regards,


  2. Vassil Vassilev
     Vassil Vassilev avatar
    308 posts
    21 Jan 2015
    19 May 2014
    Link to this post
    Hello Sravani,

    You could extend the widget, by filtering the IDictionary taxaCount using custom criteria and then pass the new new collection the base method:

    namespace SitefinityWebApp
        public class ExtendedClassification : TaxonomyControl
            protected override List<TaxonomyControl.TaxonData> PrepareData(IDictionary<Telerik.Sitefinity.Taxonomies.Model.ITaxon, uint> taxaCount)
    //Some code to filter taxaCount
                return base.PrepareData(taxaCount);

    Hope this helps.

    Vassil Vassilev
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
2 posts, 0 answered