Sitefinity CMS comes with open SiteSync API that you can use to sync custom items between sites.
This tutorial demonstrates how to sync two folders with files that are on the file system, from the source to the target site.
First, you create a folder, named Test, inside your project’s ~/App_Data/Sitefinity folder on both sites. Then, you sync the custom items between the two folders, using the API. You implement the methods of the ISiteSyncSnapIn interface and register the custom types in Sitefinity CMS.
~/App_Data/Sitefinity
ISiteSyncSnapIn
PREREQUISITES: You must have setup the SiteSync between the source and the target servers. For more information, see Configure the servers for synchronization.
The following articles represent the separate steps from the procedure for synchronizing two folders with custom items from the source server to the target server.
PREREQUISITES: Before you perform the tutorial, in both the source and the target projects, create the folder to be synchronized. Place it inside ~/App_Data/Sitefinity folder and name it Test.
At the end of the tutorial, you can see the full code of the tutorial.
Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.
This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.
This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.
The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important