More in this section

Forums / Developing with Sitefinity / Publishing content to sitefinity programmatically

Publishing content to sitefinity programmatically

4 posts, 0 answered
  1. clayman
    clayman avatar
    38 posts
    Registered:
    23 Sep 2009
    07 Oct 2009
    Link to this post
    I'm new to sitefinity -- one of the features I need to provide is to have scheduled jobs create and/or update content in document libraries.  Seems like this should be possible but I would also think others would have already done something like this that I can leverage :)  Is there an example that I can refer to that illustrates how to "connect" to a sitefinity project programmatically and effect CRUD operations?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    07 Oct 2009
    Link to this post
    Hi clayman,

    Thank you for using our services.

    You can take at the following link to gather more information about creating, finding, deleting or modifying content items. The current implementation of Sitefinity does not support Scheduled services. We will have scheduler from 4.0. At this stage possible solution will be implementing a ticker that will check the current time on each request and execute your custom logic.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. clayman
    clayman avatar
    38 posts
    Registered:
    23 Sep 2009
    07 Oct 2009
    Link to this post
    Thanks for the fast response.

    Just to be clear - I wasn't looking for a scheduler from Sitefinity. 

    I have a batch scheduler which coordinates a series of daily (after market close) events including datafeeds and calculations, at the end of which I need to update some pdf content which would ideally live within Sitefinity. 

    What I would love to see is a skeleton project that has all the required Sitefinity assemblies and configurations which would enable me to deploy a stand-alone executable that could be invoked by my enterprise scheduler to do [stuff] and then push content to the correct Sitefinity project.

    The documentation you linked me is fine but presented in the context of module development -- this would not be a module and it wouldn't be running as part of the ASP.NET process with the site config and binaries, etc.  If you don't have that available yet - thanks anyway - if I'm able to get it working maybe I'll post it out here.
  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    13 Oct 2009
    Link to this post
    Hello clayman,

    Thank you for getting back to us with the additional information.

    The articles that Ivan has linked do not pertain only to developing modules. These are help articles that explain the use of the Libraries module API. Having this said, I can add that you will need to use the Telerik.Libraries, and probably Telerik.Libraries.Data assemblies in order to use the Library Manager. In your code you should create an instance of this manger, to be able to work with Sitefinity libraries, since you would most probably want to upload the files in an existing library.

    Once you have uploaded the file (.pdf) for example, you might wish to create a page, or use an existing one, within your website that will display the newly added file. For this you would need to use the Pages API, we also have a webinar, explaining how to use Sitefinity's API. You can take a look at the Sitefinity API tips & tricks.

    Currently we do not have any help articles prepared on how to use the Sitefinity classes outside of the context of your website. However this basically should not be a problem, as you just need to reference the needed assemblies (you might already know that). You would also need to provide the appropriate connection strings in order for the content providers that you are using to know where the data should be stored.

    Please, keep us posted on how your implementation is going.
     
    Sincerely yours,
    Radoslav Georgiev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Register for webinar
4 posts, 0 answered