News from multiple sources (providers)
Hi HMcCracken,
You can do this from Sitefinity >> Administration >> Settings >> Advanced. You have to set
1.new connection string in DataConfig.config
2. modify the configuration by adding parameter - connectionString
Please take a look at attached screenshot.
All the best,
Ivan Dimitrov
the Telerik team
I have completed that bit however when I navigate to the News module I still only see the news items from the current instance. How exactly are they supposed to appear? Mixed in or should I be able to switch between providers in that page?
Hi HMcCracken,
There is a parameter - applicationName that should be different if you want to see the items separately from both the providers.
You can also restart the application after the modifications to the Settings section. When you go to News, you should see two tabs that represents your providers.
All the best,
Ivan Dimitrov
the Telerik team
I'm trying to do basically the same thing. I want to pull the news from the corporate site
In DataConfig.config
<
add
connectionString
=
"data source=server;UID=user;PWD=pass;initial catalog=Site"
providerName
=
"System.Data.SqlClient"
name
=
"Sitefinity"
/>
<
add
connectionString
=
"data source=server;UID=user;PWD=pass;initial catalog=Corp"
providerName
=
"System.Data.SqlClient"
name
=
"Corporate"
/>
<
providers
>
<
add
version
=
"4.0.1091.0"
name
=
"OpenAccessDataProvider"
/>
<
add
description
=
"Corporate News"
resourceClassId
=
""
connectionString
=
"Corporate"
applicationName
=
"Corporate"
type
=
"Telerik.Sitefinity.Modules.News.Data.OpenAccessNewsProvider"
enabled
=
"True"
version
=
"4.0.907.0"
name
=
"CorporateProvider"
/>
</
providers
>
Field 'UrlName_' of class 'Telerik.Sitefinity.GenericContent.Model.Content' is described as compiled and artificial at the same time. --> Telerik.Sitefinity.Model, Version=4.0.1091.0, Culture=neutral, PublicKeyToken=b28c218413bdf563/namespace[Telerik.Sitefinity.GenericContent.Model]/class[Telerik.Sitefinity.GenericContent.Model.Content]/field[UrlName_]
Hi HMcCracken,
Could you try to use the same version for both the projects? It looks like you use two projects with different version .
Best wishes,
Ivan Dimitrov
the Telerik team