Unfortunately, you have forgotten to tell me what error do you get. However, I am assuming you are getting something like "object not associated with transaction".
I've just checked the documentation and I see that we have not made this clear enough, so it's on our to do list for the next update.
Anyhow, in order to update the content (in your case news item) you need to use GetContent(Guid id) method, which will return an IContent item associated with the transaction. So for example, if you want to update all the news on your site, you would have a code looking something like this:
|NewsManager newsManager = new NewsManager("News");
|IList allNews = newsManager.Content.GetContent();
|foreach(IContent news in allNews)
| // notice how we are getting the IContent object again here, because we need
| // one associated with transaction
| IContent newsInTransaction = newsManager.Content(news.ID);
| newsInTransaction.Content = "- UPDATED -";
I know that this may seem a bit redundant, but it improves performance when doing just querying. Anyhow, for Sitefinity 4.0 we are preparing a new advanced Generic Content API that will simplify working with the API, but perhaps even more importantly it will perform much better. The new advanced API will be completely backward compatible with the current one.
I hope you'll find this information helpful. Let us know if there is anything else we can do for you.
the Telerik team
Check out Telerik Trainer
, the state of the art learning tool for Telerik products.