Where to insert Sample Functions in SitefinityWebApp

Posted by Community Admin on 05-Aug-2018 17:03

Where to insert Sample Functions in SitefinityWebApp

All Replies

Posted by Community Admin on 10-Jun-2013 00:00

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,
www.sitefinity.com/.../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....




Posted by Community Admin on 12-Jun-2013 00:00

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.

This thread is closed