If you do not wish to upgrade to 5.4 your current website, but still move all your content items to it, you have an option, however it is not an easy one. Since Sitefinity does not have such migration tool between 4x and 5x sites, you will need to create custom providers for each one content modules. Then using our API and the managers, you can access the items from the other providers. After you have access to those items, you can create a foreach loop, in which you can create the same items in your default provider for the current site, thus importing and exporting the content from the different providers.
Here is a quick sample, if you want to sync dynamic module's data.
First the module builder types have to be added to the new project as additional providers. Add connection string from one project to the other from Administration->Settings->Advanced->Data->Connection string (follow the pattern of the already exisinng connection string), name the connection string. This way now the new project is connected to the old.
In Administration->Settings->Advanced->DynamicModules->Providers add new provider to the default one of the same type OpenAccessDynamicModuleProvider and add two parameters.
applicationName = /DynamicModule
connectionString = the name of the connection string to the old database created previously.
Restart the application and the new provider will appear.
Query the old provider data and create new one in the current project:
DynamicModuleManager dynamicModuleManagerOld = DynamicModuleManager.GetManager(
Type testTypeOld = TypeResolutionService.ResolveType(
var queryOldItems = dynamicModuleManagerOld.GetDataItems(testTypeOld).ToList();
DynamicModuleManager dynamicModuleManager = DynamicModuleManager.GetManager();
Type testType = TypeResolutionService.ResolveType(
var testItem = dynamicModuleManager.CreateDataItem(testType);
All the best,
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