+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Separate Blog Indexes

Separate Blog Indexes

4 posts, 0 answered
  1. Matthew Snyder
    Matthew Snyder avatar
    15 posts
    Registered:
    21 Sep 2009
    23 Dec 2010
    Link to this post
    Hello,

    Is it possible to set up separate indexes for Blogs? For example, if I have blogs named Blog1, Blog2, and Blog3, could I set up a search index that only searches Blog1 and Blog2, and a second index that only searches Blog3?

    Thanks.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    24 Dec 2010
    Link to this post
    Hi Matthew,

    You need to create a custom provider that inherits from BlogIndexProvider and override ParentIDs property where you can return the items only from specified blogs.

    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Conrad Ehinger
    Conrad Ehinger avatar
    59 posts
    Registered:
    22 Sep 2009
    02 Dec 2011
    Link to this post
    Ivan,

    This is a pretty basic request with a sizable amount of code required to complete it. Can you add a request to PITS? If Sitefinity is going to offer support for multiple blogs, then you need to be able to set controls for a specific blog. For instance - I should be able to specify a Blog for the Categories and Archive control.

    We've had to limit our clients on functionality because of these limitations. Can you please provide a code example for building a custom BlogIndexProvider?

    Thanks,

    Chris
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    06 Dec 2011
    Link to this post
    Hi Conrad,

    I added a PITS issue for your request.

    As for the sample, you only need to create a class that inherits from BlogIndexProvider and override the ParentIDs property where you pass the blog Id you need. Then register the new provider in the web.config.

    Greetings,
    Ivan Dimitrov
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
4 posts, 0 answered