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

Forums / General Discussions / List of Categories for a News Item

List of Categories for a News Item

2 posts, 0 answered
  1. Alex
    Alex avatar
    39 posts
    Registered:
    19 Jul 2010
    03 Feb 2011
    Link to this post
    I am using the following code to get out News Items.  How can I limit the get by a specific category?  Or in my loop can I do an if statement to limit what category of items is displayed.

    var topNews = App.WorkWith().NewsItems()
                        .Where(t => t.Status == ContentLifecycleStatus.Live)
                        .OrderByDescending(o => o.PublicationDate)
                        .Get()
                        .ToList();

    Thanks,
    Alex Lorenz
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    03 Feb 2011
    Link to this post
    Hi Alex,

    Please check this post.

    Greetings,
    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
2 posts, 0 answered