logo
logo

Template components

You can export a design from Adobe Illustrator to the Sitecore Content Publisher. This lets you create templates using a standard graphical editor before you upload it to Sitecore Content Hub, where you can add further constraints, variables, and assets.

The template includes the following main components:

  • Constraints
  • Variables
  • Assets
  • Dynamic layouts

Constraints

Constraints lets superusers and Chili administrators lock or limit editing possibilities, including moving, rotating, or scaling elements in a template. The Chili editor provides complete control over character and paragraph settings, and the text engine provides accurate typography rendering.

These constraints let users edit individual elements, layers, pages, or entire documents in specific ways. Different users can have various limitations so that stakeholders edit the template in different ways. You can set constraints as final to reuse them in similar templates.

Variables

The variable component includes detailed modification mechanisms for different variable types. For example, you can set a numeric value to only increment or decrement by ten. Users can edit the variables you configured in a template when using it to create a publication. You can also constrain variables to block users from making changes.

The following example shows the modification of a text variable made by a user when creating a publication from a template:

Variable unchangedVariable changed

Assets

Templates can access assets stored in Sitecore Digital Asset Management (DAM). To check that it follow brand guidelines and keep brand consistency, users can only use approved assets or assets included in the template when creating their publication.

Chili administrators can include a set of assets to be used in frames. In publications, users can then customize the template using these assets:

Dynamic layouts

Dynamic layouts are a set of features that makes it possible to put intelligence in a document layout. It allows for the document, its frames, and alternate layouts to automatically reposition, resize or scale based on its relation to other elements.

In this example, the Ad size is a dynamic layout that changes the size of the ad:

Can we improve this article ? Provide feedback