More in this section
Forums / Designing with Sitefinity / Provider for Bloggers

Provider for Bloggers

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. Rob Gaudet
    Rob Gaudet avatar
    16 posts
    Registered:
    27 Nov 2005
    13 Oct 2009
    Link to this post
    Why isn't blogger module showing my bloggers list? Could it be that I do not have a provider assigned?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    13 Oct 2009
    Link to this post
    Hello Rob Gaudet,

    BloggersList control get the Author names for each blog and loads them in a list. Initially you should set the author for each blog under Blog Settings section. On the public side we are getting a list of all blogs ant the author for each blog

    Sample code:

    public partial class CustomControls_BloggersListView : ViewModeUserControl<GenericControlPanel>
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            BlogManager manager = new BlogManager("Blogs");
            IList blogs = manager.GetBlogs("Author");
            foreach (IBlog blog in blogs)
            {
                if (!String.IsNullOrEmpty(blog.Author) && !String.IsNullOrEmpty(blog.BlogPage))
                {
                    ListBox lb = new ListBox();
     
                    ListItem li = new ListItem();
                    li.Text = blog.Author;
                    lb.Items.Add(li);
                    Controls.Add(lb);
     
                }
            }
     
        }
    }


    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
2 posts, 0 answered