+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / News Manager API

News Manager API

4 posts, 0 answered
  1. Steven Lancaster
    Steven Lancaster avatar
    82 posts
    Registered:
    06 Nov 2009
    08 Sep 2010
    Link to this post
    I need to get information on the News Manager API. I need complete i9n depth documentation and I can not seem to find it.

    Thanks in advance,

    Steve
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    08 Sep 2010
    Link to this post
    Hello Steven Lancaster,

    You can take a look at Overview of Generic Content API. News Module is based on GenericContent model.

    Sincerely yours,
    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
  3. Steven Lancaster
    Steven Lancaster avatar
    82 posts
    Registered:
    06 Nov 2009
    08 Sep 2010
    Link to this post
    I am trying to figure out why this not working.

    IList allposts = NewsManager.getPosts(string.Empty, NewsItem.ID, NewsItem.ID);


    The problem is with The getPosts. I know that works on Blogs but can not figure out what is equilivant for the News.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    08 Sep 2010
    Link to this post
    Hi Steven Lancaster,

    Use GetContent method - Finding Content Items. There are about 21 overloads. GetPosts methods are obsolete

    • GetPosts(string sortExp, params Guid[] blogIds) - Get all posts for given blogs, sorted. OBSOLETE!
    • GetPosts(string sortExp, Guid[] blogIds, params IMetaSearchInfo[] filter) - Get filtered subset of posts for given blogs, sorted. OBSOLETE!


    Regards,
    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
Register for webinar
4 posts, 0 answered