We've built a simple user control to display the most recent news item, but were wondering if it's possible to filter the news items by category? Specifically, is there a way by changing the sorting expression passed in to the GetContent method?
Here's our current code, you can see we're already ordering by Publication_Date to get the latest item, but I'm unsure of the syntax to use to filter by category.
SitefinityNewsDefaultItem : System.Web.UI.UserControl
sender, EventArgs e)
NewsManager newsManager =
IContent latestNewsItem = newsManager.Content.GetContent(
NewsView newNewsItemControl =
newNewsItemControl.SelectedItemId = latestNewsItem.ID;