Forum
Forum
DevBlog
Forum management
Threads started by me
Threads I participate in
Get started
Dynamicweb 9
Dynamicweb 10
Swift
Templating
Community
Downloads
Login
Service Desk
Order
Sections
Get started
Dynamicweb 9
Dynamicweb 10
Swift
Templating
Community
Downloads
Forum
DevBlog
Forum management
Threads started by me
Threads I participate in
Developer forum
×
E-mail notifications
E-mail
I'd like to be informed of the updates
Don't bother me with any emails
Forum
»
Development
»
Creating news-item
Creating news-item
E-mail notifications
Reply
Posted on 02/03/2011 13:23:03
Hey everyone.
Is there a method for creating a news-item in the NewsV2 module?
I'm looking for something like this:
Dynamicweb.NewsV2.Item.CreateNewsItem(...)
Replies
Posted on 02/03/2011 13:45:16
Reply
Hey Bo,
Try something like this..
var item = new Dynamicweb.NewsV2.NewsItem();
item.NewsCategoryID = 123;
item.NewsHeading = "Breaking News: html24.dk conquers the world";
item.NewsText = "blah blah blah";
item.Save();
/Morten
You must be logged in to post in the forum
Login
Username
Password
Forgot your password?