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

Forums / Sitefinity SDK / Where to insert Sample Functions in SitefinityWebApp

Where to insert Sample Functions in SitefinityWebApp

2 posts, 0 answered
  1. David
    David avatar
    9 posts
    Registered:
    05 Jun 2013
    10 Jun 2013
    Link to this post
    Hello Everyone, beginner developer here so I apologize for the  naive question.
    My end goal is programmatically insert news items in Sitefinity using the Native or Fluent API from a mysql database.

    The API doc's even contain sample code on how to create a news item,
    http://www.sitefinity.com/documentation/documentationarticles/developers-guide/sitefinity-essentials/modules/news/creating-news-items

    The problem is I am such a novice I am not sure where to insert this sample code. I've got visual studios/sitefinity/sitefinity SDK installed and working correctly. I even have the sample projects loading as expected.

    I just dont know where to start the development of my functions. Do I need a custom class? A Resource class? A custom Widget?

    Is there a place to download a sample project that has some these beginner functions built in? (create news, query news)?

    Thanks in Advance....




  2. Kaloyan
    Kaloyan avatar
    272 posts
    Registered:
    28 Sep 2016
    12 Jun 2013
    Link to this post
    Hello David,

    Sitefinity CMS is a standard ASP.NET application and it can be used like every ASP.NET project. You can easily create content programmatically by adding new aspx page to your project and then put the code sample in the code behind of the page. Most of the samples from the Sitefinity essentials part of our documentation can be used this way. 

    I would advice to take a look at the following links where you can find very useful information about the usage of the APIs:

    http://www.sitefinity.com/developer-network/forums/developing-with-sitefinity-/page-creation-steps-using-api

    http://www.sitefinity.com/documentation/documentationarticles/developers-guide/deep-dive/fluent-api/overview

    http://www.sitefinity.com/developer-network/forums/developing-with-sitefinity-/creating-news-items---native-api

    http://www.sitefinity.com/developer-network/videos/fluent-api

    Regards,
    Kaloyan
    Telerik

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

2 posts, 0 answered