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

Forums / General Discussions / Use of Bloggers list user control

Use of Bloggers list user control

10 posts, 1 answered
  1. vipul patel
    vipul patel avatar
    37 posts
    Registered:
    12 Mar 2010
    04 Jun 2010
    Link to this post
    I am a new sitefinity user currently testing blogs module and blogs user control.  I am unable to filter blogs by clicking on bloggers list usercontrol. I need some help in filtering blogs based on author, please help me how to set properties for this funtionality.

    Vipul
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    04 Jun 2010
    Link to this post
    Hi vipul patel,

    Each blog has an author. The posts itself does not have author out of the box. You can drop BlogPosts control on a page, then open the control for editing and select Which blogs to display? Please take a look at the attached screenshot.

    Sincerely yours,
    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. vipul patel
    vipul patel avatar
    37 posts
    Registered:
    12 Mar 2010
    04 Jun 2010
    Link to this post
    Thanks for your prompt reply,  I have got my blog page working okay, i am also using tags list control, archive control, categories list control, categories tree control and blog calender control on the side bar to filter the blogs when a link from one of these control are clicked.  I have got 4 controls i.e. tag list, calender, category tree and archive control working properly.  I am facing problems with bloggers list and categories list control.  With bloggers list control it is showing correct names with post counts but when i click it is not filtering the blog post on the selected blogger,  also in categories list it is showing correct categories but the count of one category is showing more than the actual count.
    Please let me know what settings do i need to rectify my problems.

    Vipul
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    04 Jun 2010
    Link to this post
    Hi vipul patel,

    With bloggers list control it is showing correct names with post counts but when i click it is not filtering the blog post on the selected blogger

    Make sure that on the Blog Page specified in your blog settings you have BlogPosts control which shows only the posts for a particular blogger. BloggesList control is looking for two parameters - Blog Posts page and Blog Author name. You could take a look at this post.

    Basically for each blogger you need a separate page on which you have BlogPosts control with filtered posts. There is a way to use a single page and filter all posts per blogger

    You could tweak the BlogPosts control to filter the posts by  wrapping the BloggersList repeater inside BlogPosts control. When you click on the blogger link the list of post will be filtered and you will remain on the same page - this will not require to have separate page for each blogger.

    sample

    void Bloggers_ItemCommand(object source, RepeaterCommandEventArgs e)
            {    

                     // this is repeater with all bloggers
                if (e.CommandName == "FilterPosts")
                {
                           // Create ContentFilterBuilder and when the
                           // button is clicked filter all posts by Parent ID based
                           // on the blogger
                    this.FilterBuilder.AddFilter(new ContentFilterStatement("ParentID", e.CommandArgument.ToString(), ContentFilter.Condition.Equal, ContentFilter.JoinType.And));
                    base.CreateContentList();
                    base.ListContainer.RepeaterControl.DataBind();
                    this.FilterExpression = string.Empty;
                }
            }


    also in categories list it is showing correct categories but the count of one category is showing more than the actual count.

    Please take a look at Filter CategoriesTree control by Blog.

    Regards,
    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.
  5. vipul patel
    vipul patel avatar
    37 posts
    Registered:
    12 Mar 2010
    04 Jun 2010
    Link to this post
    Thanks again for your prompt reply,  What i am looking for is when i click on a blogger from the bloggers control in my side bar, it should filter the blogs for the selected blogger on the same page.  Is this possible? if yes it would be helpfull if you send me in detail how to make changes to the code and where(which file).
    Regarding the Categories i have used categories tree control and it is working fine and filtering the blogs when a category is clicked, it also shows correct count but the problem is with categories list control which shows incorrect count for one category. It would be great if you can help me where i am going wrong.

    Vipul
  6. Leonard
    Leonard avatar
    19 posts
    Registered:
    01 Dec 2005
    04 Jun 2010
    Link to this post
    Vipul,

    Here are a couple of blog posts you might find useful:


    Regarding the Category List - there seems to be a cache-related issue; use the Category Tree instead.

    I hope this helps --
    Answered
  7. vipul patel
    vipul patel avatar
    37 posts
    Registered:
    12 Mar 2010
    07 Jun 2010
    Link to this post
    Thanks Leonard for your quick reply which was very helpful to understand how to customize Blogs module and controls.  I have not tested the code yet but will let you know if I find any difficulties implementing it.  I have got another requirement to set the permissions at blog level, instead of setting the permissions at the module level, which works for all the blogs, so I want to set different permissions for different blogs, is this possible and if yes let me know how to do it.

    Vipul
  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    07 Jun 2010
    Link to this post
    Hello vipul patel,

    There are not granular permissions out of the box. The easiest way to implement some restrictions for a Blog is through the template. You will find sample code and some description in this post.

    All the best,
    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.
  9. vipul patel
    vipul patel avatar
    37 posts
    Registered:
    12 Mar 2010
    07 Jun 2010
    Link to this post
    Hi Ivan,

    Thanks for your quick reply,  I guess the solution suggested by you only hides the delete column of the blog list view, that can be achieved through permissions also, please let me know if i am correct, or if i am wrong please explain in detail of how to use the workaround. Is it possible to customize this permissions at a blog level rather then module level?

    Vipul
  10. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    07 Jun 2010
    Link to this post
    Hi vipul patel,

    The workaround will require to implement a new module with permissions for it. There are not permissions that apply over Blog objects. They apply over the IContent items in the module. The same applies for Image and Documents module where you do not have permissions per Library objects.

    You can take a look at

    The articles above explains everything about the permissions, how they work, how you can implement them. You will find sample module here.

    Kind regards,
    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.
Register for webinar
10 posts, 1 answered