Cloud development in Content Hub
Sitecore Content Hub is a versatile platform with a microservice architecture that provides the developer with flexible integration methods with external systems and for cloud development pipelines in general.
From a development standpoint, you create and extend components to fulfill business requirements using the tools available for internal integrations (triggers, actions, scripts, and external page components), which are accessible from the Manage page. You can also use the SDKs, APIs, and the CLI to develop frontend and backend integrations, and the connectors to integrate with specific external systems, such as Salesforce Marking Cloud and Adobe Creative Cloud. As you develop solutions, be sure to follow the guidelines described in Best practices for developers.
Triggers, actions and scripts are frequently used together where Scripts are configured to execute business logic (for example, API calls, data validation, data modification). Actions of type Action script are configured to run the scripts when called and Triggers are configured to call the script actions when an event occurs and the conditions are met.
The following table lists integration tools that you can use.
Tool |
Description |
---|---|
Triggers are a push mechanism in Content Hub that executes certain actions if certain conditions are met after specific events occur. Triggers are defined by a set of triggering events, a set of conditions, and a set of actions. Triggers can be used as a push mechanism towards external systems by making API calls (for example, to invoke an Azure Function) or by publishing messages to an Azure Service Bus queue or an Azure Event Hub. | |
Actions are extensible objects that can be included in other page components (for example, in a Selection component) and that can execute a specific task, such as running a predefined script, making an external API call, and publishing messages to an Azure Service Bus queue or an Azure Event Hub. | |
Scripts can be manually triggered by end-users or automatically triggered by the application depending on the script type and the use case. There are different script types available, with each type having different context properties. For details on when to use Scripts and when to use the Microsoft Azure functionality, see How to choose the integration tool. | |
A command-line interface (CLI) processes commands to a computer program in the form of lines of text. The program which handles the interface is called a command-line interpreter or command-line processor. The CLI is used for communicating with Content Hub instances through the REST API using the C# Web SDK. | |
Content Hub offers an import/export package feature that allows users to migrate their structural changes between different instances of Content Hub. | |
External page components are extensible components that can be integrated into pages. They allow the integration of external libraries within Sitecore Content Hub pages. External components contain a code section that gets executed when the component is initialized, as well as a template section that contains an HTML markup that gets injected in the DOM when the component is initialized. | |
The C# Web SDK is an external tool that makes it easier for C# developers to implement their own logic in manipulating the object resources. | |
The JavaScript SDK is an external tool that makes it easier for JavaScript developers to implement their own logic in manipulating the object resources. | |
The REST API is a Hypermedia API built on top of HTTP where all objects are modeled as resources. Each resource represents the state of the object at the time of the request. Standard HTTP requests and responses are used to query and manipulate the state of the objects. |
Experience Edge for Content Hub provides additional services for headless content delivery that are based on the Content as a Service (CaaS) model. This model focuses on managing content into feeds (that is, where other applications and properties can consume and use the content according to their particular needs).
To integrate Content Hub with other products, Sitecore provides the following connectors.
Connector |
Description |
---|---|
Sitecore Connect for Content Hub allows users to browse, search and insert digital assets from Sitecore Content Hub directly within Sitecore Content and Experience editing tools. | |
Sitecore Connect for Creative Cloud is a powerful extension that connects Sitecore Content Hub with Adobe Creative Cloud tools and enables direct linking to stored assets. | |
Sitecore Connect for Salesforce allows users to to include assets from Sitecore Content Hub in Salesforce Marketing Cloud Email App. | |
Enables you to unify your commerce content synchronizing product data in Microsoft D365 Commerce and Content Hub. You can also use Dynamics 365 Commerce visual page builder to reference enriched product details and product assets such as images, videos, files, and markup from Content Hub. |
You'll find a list of frequently-asked questions about cloud development as well as information about page components and pages that have been migrated to React in this section as well.