List of Categories for a News Item

Posted by Community Admin on 03-Aug-2018 22:10

List of Categories for a News Item

All Replies

Posted by Community Admin on 03-Feb-2011 00:00

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

Posted by Community Admin on 03-Feb-2011 00:00

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

This thread is closed