More in this section

Forums / Developing with Sitefinity / Insert news programaticaly to database

Insert news programaticaly to database

3 posts, 1 answered
  1. Mike Drag
    Mike Drag avatar
    10 posts
    Registered:
    29 May 2006
    13 Aug 2009
    Link to this post
    Hi

    Has anybody tried to insert news or events items programaticaly to the database?
    Our client supplies us with the list of events in excell sheet that would like to inport to the database and not type in to sitefinty admin part?
    Is there a way to do it? (i guess it should be)

    Thanks in advance
    Mike
  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    13 Aug 2009
    Link to this post
    Hi Mike Drag,

    Thank you for your question.

    Yes, there is a way - this what the API is for :) Please take a look at the following dev. manual articles:
    I guess that the easier way of creating an news item would be to save the excel file as a CSV file, then parse the CSV file and create the content items. 

    Please let me know if you need a specific example for this. 

    I hope this helps.

    Kind regards,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
    Answered
  3. Mike Drag
    Mike Drag avatar
    10 posts
    Registered:
    29 May 2006
    13 Aug 2009
    Link to this post
    Thank you Georgi
    This was helpful. I read through the manual and everything seems easy enough.
    Development of this will come on our plate in few weeks. If I have any further questions I will post it then.

    Thanks again
    Mike
Register for webinar
3 posts, 1 answered