I am creating a XMLReader module for our news to port the news to another site.
Currently i am getting the news like this:
...
private string GetNewsByIds(int[] news)
{
foreach(int id in news)
{
Dynamicweb.NewsV2.NewsItem item =
new Dynamicweb.NewsV2.NewsItem(id);
}
}
...
My question is:
How do I get the newsitems in a more flexible fashion?
If I for example want to retrieve the top 5 newst news in a specific categoryhow would I go about doing that?
I can see there is a NewsItemCollection Object but no apparent way to fill it?
kind regards
Sune Fengel