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

Forums / Developing with Sitefinity / Blog posts - filter by author?

Blog posts - filter by author?

4 posts, 1 answered
  1. Dan
    Dan avatar
    23 posts
    Registered:
    04 Dec 2010
    19 Jan 2011
    Link to this post
    How do I use the blog control to only show posts by a specific author?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    19 Jan 2011
    Link to this post
    Hello Dan,

    The BlogPosts control has a property FilterExpression under its Advanced tab which you can use to filter the control  by Author.

    Author = "myuser"

    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
    Answered
  3. Dan
    Dan avatar
    23 posts
    Registered:
    04 Dec 2010
    19 Jan 2011
    Link to this post
    Do I just use the Author name as I see it in the blog posts? Because when I do that, no posts come up in the blog control even though I know there are posts by that author.

    edit: Never mind. Had a typo in my query. Thanks
  4. Leonard
    Leonard avatar
    19 posts
    Registered:
    01 Dec 2005
    20 Jan 2011
    Link to this post
    Dan,

    The following articles might be of help - they describe (and provide related code) how to enable multiple authors for a single blog, and implement filters (and related controls) by author name:

    1. Admin view: enable author maintenance on the blog post level
    2. Public View: Controls that Allow Filtering by Post-level Author


Register for webinar
4 posts, 1 answered