Adding new provider API

Posted by Community Admin on 04-Aug-2018 22:18

Adding new provider API

All Replies

Posted by Community Admin on 25-Feb-2013 00:00

Hi,

I'm trying to add new provider from code. That is what I have so far:

            var providers = Config.GetManager().GetSection<LibrariesConfig>().Providers;
            if (!providers.ContainsKey("ww4Images"))
            
                providers.Add(new DataProviderSettings(providers)
                    Name = "ww4Images",
                    Title = "WW Images",
                    Description = "WW images hosted on Sitefinity 4",
                    ResourceClassId = typeof(LibrariesResources).Name,
                    ProviderType = typeof(Telerik.Sitefinity.Modules.Libraries.Data.OpenAccessLibrariesProvider),
                    Parameters = new NameValueCollection() "applicationName", "/Images" ,
                                                              "connectionName", "Sitefinity4" ,
                                                              "connectionString", "Sitefinity4"
                     
                    );
            

What do I need to add to my code in order to update sitefinity configuration files to remember new provider?

Thanks, Denis.

Posted by Community Admin on 27-Feb-2013 00:00

Hi,

Please review the following forum post where you will find useful information.

Greetings,
Stefani Tacheva
the Telerik team

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed