More in this section

Forums / Developing with Sitefinity / Category wise top n news

Category wise top n news

2 posts, 0 answered
  1. Saumitra
    Saumitra avatar
    127 posts
    10 Mar 2009
    19 Feb 2010
    Link to this post

    I have a requirement where I need to display latest 1 news summary (title with short summary and a thumbnail) for each news category in the same news listing. I do not want to use those many news view controls as the number of categories. Can you please suggest a workaround for the same ? We are using Sitefinity Standard Edition 3.7 SP1

  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    01 Feb 2016
    19 Feb 2010
    Link to this post
    Hello Saumitra,

    You should first create a custom news view control and override the CreateDataSource method to create a list of latest categorized news (one for each category). Then you should configure the NewsView what to show on the item list as in attached image. Sample code is also attached to this post.

    Best wishes,
    Radoslav Georgiev
    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.
2 posts, 0 answered