Filetring Tags

Posted by Community Admin on 04-Aug-2018 09:28

Filetring Tags

All Replies

Posted by Community Admin on 17-May-2014 00:00

Hi,

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,

Sravani.

Posted by Community Admin on 19-May-2014 00:00

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.

Regards,
Vassil Vassilev
Telerik
 
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
 

This thread is closed