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

Forums / Designing with Sitefinity / How to filter news listing based on news tags

How to filter news listing based on news tags

4 posts, 0 answered
  1. sathiyaseelan
    sathiyaseelan avatar
    82 posts
    Registered:
    26 Aug 2008
    18 Oct 2010
    Link to this post
    Hi sir,

    I have a news listing control that fetches all sitefinity news. Here after I need to filter it by passing a tag name.

    How can I achieve it.

    Thanks,
    sathya
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    18 Oct 2010
    Link to this post
    Hi sathiyaseelan,

    NewsView control has a property FilterExpression that you can use to filter the list. The property is located in the Advanced tab of the control - Filters section
    You have to use the following syntax

    Tag.Name = "test"


    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. sathiyaseelan
    sathiyaseelan avatar
    82 posts
    Registered:
    26 Aug 2008
    18 Oct 2010
    Link to this post
    Hi sir,

    I am not using Newsview default control. I had built a user control that gets all news and displays in some format.
    so how do I achieve this through code.

    Thanks,
    sathya
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    18 Oct 2010
    Link to this post
    Hello sathiyaseelan,

    GetConent method of CmsManager supports 21 overloads that you can use to get your data. You can use MetaSeachInfo to filter the list of your items.

    Best wishes,
    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
4 posts, 0 answered