More in this section
Forums / General Discussions / RSS - for multiple categories

RSS - for multiple categories

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. Alex
    Alex avatar
    1 posts
    Registered:
    08 Mar 2011
    08 Mar 2011
    Link to this post
    Is it possible to set up multiple RSS feeds if your blog has multiple category areas so users can subscribe to only those posts (categories) they care about?

    E.g. - we have multiple products and will use the same blog for all of them. If a user only wants RSS alerts for one product, how would they subscribe via RSS to only that one product (category/ or tag?)

    Can you put 4-5 RSS feed icons with 4-5 different feed URLs for each product on the blog homepage?

    Thank you,
    Alex
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    09 Mar 2011
    Link to this post
    Hello Alex,

    One of the option is using specific blog only with certain categories and filter the public blog posts control using its FilterExpression property ( Advanced tab)
    In this case you should be very careful, but you will not have to do any coding.

    Another option is implementing a custom rss provider that inherits from Telerik.Blogs.Rss.RssChannelProvider

    sample

    public class BlogsRssChanelCustom : Telerik.Blogs.Rss.RssChannelProvider
    {
     
     
        public override string Name
        {
            get
            {
                return "test blogs";
            }
        }
     
        public override void Initialize(System.Collections.Generic.IDictionary<string, string> settings)
        {
            base.Initialize(settings);
     
            string[] categories = { "cat1", "cat2" };
     
            foreach (string category in categories)
            {
                // Category filter
                base.FilterBuilder.AddFilter(new MetaSearchInfo(MetaValueTypes.ShortText, "Category", category, SearchCondition.Equal));
            }
        }
     
     
     
     
    }
     

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
2 posts, 0 answered