Speed up widget development with Sitefinity MCP server. Learn more...

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.

NEW TO SITEFINITY?

Want to learn more?

Enhance your Sitefinity skills by enrolling in free training sessions. Become Sitefinity certified through Progress Education Community to strengthen your professional credentials.

Get started with Integration Hub | Sitefinity Cloud

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 your 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 ASP.NET Core and take advantage of its decoupled architecture and modern development model.

Was this article helpful?