Synchronize custom items

Sitefinity CMS comes with open SiteSync API that you can use to sync custom items between sites. 

Overview

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.

PREREQUISITES: You must have setup the SiteSync between the source and the target servers. For more information, see Configure the servers for synchronization.

Procedure

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.

Full code sample

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.

Get started with Integration Hub | Sitefinity Cloud | Sitefinity SaaS

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.

Web Security for Sitefinity Administrators

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.

Foundations of Sitefinity ASP.NET Core Development

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.

Was this article helpful?