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

Forums / General Discussions / custom blog posts filtering - is this possible

custom blog posts filtering - is this possible

5 posts, 1 answered
  1. Elizabeth
    Elizabeth avatar
    83 posts
    Registered:
    23 Mar 2005
    30 Dec 2014
    Link to this post

    In one of our pages, we want to display blog posts that match this filter:

    (all posts from Blog A) and (posts from Blog B where category contains X)

     Is this possible? We are using Sitefinity 7.2. Thanks

  2. Tihomir
    Tihomir avatar
    23 posts
    Registered:
    01 Jul 2016
    02 Jan 2015
    Link to this post
    Hi,

    You can achieve this by extending the filter expression of the blog post widget. You can find more info about the filter expressions in our documentation portal.

    Hope this helps.

    Regards,
    Tihomir
    Telerik
     
    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 Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  3. Elizabeth
    Elizabeth avatar
    83 posts
    Registered:
    23 Mar 2005
    02 Jan 2015 in reply to Tihomir
    Link to this post

     But how would I do it so that I'd get all postings from Blog A and then just the postings from Blog B where Category.Contains("{Taxonomy ID}")?

  4. Vassil Vassilev
     Vassil Vassilev avatar
    308 posts
    Registered:
    21 Jan 2015
    07 Jan 2015
    Link to this post
    Hello Elizabeth,

    Using the filter you can display any items you need.

    In your case you need filter expression similar to the following:
    Visible = true AND Status = Live AND Parent.Title.Contains("Blog A") OR Visible = true AND Status = Live AND Category.Contains("{F811ADE6-C3E1-6C23-A553-FF0000415DFE}")

    where Taxonomy ID can be taken from your database entry as shown in this screenshot (the category`s title is "test" in my case).

    Hope this information helps.

    Regards,
    Vassil Vassilev
    Telerik
     
    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 Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  5. Elizabeth
    Elizabeth avatar
    83 posts
    Registered:
    23 Mar 2005
    14 Jan 2015 in reply to Vassil Vassilev
    Link to this post
    Looks like that's working, thanks!
    Answered
5 posts, 1 answered