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

Forums / Sitefinity SDK / Registering Custom Provider

Registering Custom Provider

4 posts, 1 answered
  1. Joe Keller
    Joe Keller avatar
    48 posts
    Registered:
    07 Apr 2010
    07 Sep 2010
    Link to this post
    I am building a custom module that will use a custom provider that I have created. What is the recommended way to register the Provider with Sitefinity 4.0 ?
    I can just edit the web.config, but, it seems there might be a better approach.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    08 Sep 2010
    Link to this post
    Hi Joe Keller,

    You can use sitefinity/Settings/Configurations and register the provider from there. There are sections like Blogs, Content,  Events etc wher you can add an additional provider. Let me know if there are further questions.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Joe Keller
    Joe Keller avatar
    48 posts
    Registered:
    07 Apr 2010
    08 Sep 2010
    Link to this post
    That helps a little.
    I can see how I can add additional providers to things that are all ready part of Sitefinity such as News, Events, Blogs, etc.

    But, I am creating an entirely new Module not based on anything that currently exists in Sitefinity.

    So, what I need to figure out is how to create a new node on the configurations menu, and then have a sub node called Providers, and then have the option to create a new provider, the same as the other built-in components do.

    For more detail on what I am doing... 

    I am creating a UserTracking module which has a tracking widget that I can place on a page. When the widget is loaded as part of the page processing, it uses a custom provider I created to write the page hit information to a datastore.

    Currently I have created a File provider which will write the page hits out to a file on the filesystem, but, I would also like to offer a Sql provider to write the page hits to a database, and maybe others.

    But, I want to make the process of installing this module as simple as possible, without requiring the person installing it to open the web.config and create the provider section in the .config file. Additionally, if they want to change providers I want it to be as easy and elegant as it is in the Sitefinity configuration menu to change out a provider for something like an Event or Blog.



  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    08 Sep 2010
    Link to this post
    Hi Joe Keller,

    In this case you need a new configuration class. You can take a look at Creating New Configuration Classes

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
    Answered
4 posts, 1 answered