logo
logo

Template detail page

The template detail page gives you a complete view of the template and lets you configure it to make it usable for users in Sitecore Content Hub™.

To access a template detail page:

  1. On the main menu bar, click Print, then click Templates.
  2. On the Templates page, click the tile of the template you want.
Note

All the actions described in this document start from the template detail page.

The template detail page contains a template preview on the left side and the following configuration tabs on the right side: Details, Variables, Dynamic frames, and Triggers.

Details

The Details tab contains the system details of the template.

To edit these values, in the top-right corner of the tab, click Edit .

Variables

The Variables tab lets you configure the templates so users can manipulate them using input forms. Rules and constraints are created in the variable fields to simplify the user experience while ensuring brand protection.

To set variables on a template:

  1. On the Variables tab, click Edit .
  2. In the drop-down list, select the variable you want to expose to the users.
  3. Click Save.

The list of variables is the list of the variables you created in the Chili editor.

Selected variables show in the Design tab of the Chili editor page, where you can edit their content.

Dynamic frames

The Dynamic frames tab lets you link template image frames to Sitecore Digital Asset Management (DAM)™ assets and metadata.

To add a dynamic frame:

  1. On the Dynamic frames tab, click + Dynamic frame.
  2. On the Dynamic frame dialog box, in the Frame drop-down list, select the frame you want to link.
  3. On the Dynamic frame dialog box, on the Contents tab, set the following parameters:

    FieldTypeDescriptionValueMandatory/Optional
    Allow uploadToggle switchAllows a direct image upload in the frame.On/OffOptional
    Allow deleteToggle switchAllows removing the current image from the frame.On/OffOptional
    Add result setButtonAdds a result set of available assets.Sitecore DAM assets.Optional
  4. On the Dynamic frame dialog box, on the Mappings tab, optionally add mappings.

  5. Click Save.

Add a result set

You add a result set to a frame to define the possible assets the user can use in the frame.

To add a result set to a frame:

  1. On the Dynamic frames tab, click + Dynamic frame.
  2. On the Dynamic frame dialog box, on the Contents tab, click Add result set.
  3. In the Result set drop-down list, select one of the following entity types: Saved search, Saved selection, Collection, Asset, or Fragment.
  4. Click select.
  5. On the Select result set dialog box, select the assets you want to link to the frame.
  6. Click Select.
  7. On the Dynamic frame dialog box, to make the result set only displayable depending on the value of a variable, click Add condition, then fill the two fields of the If condition.
  8. Click Save.

Add a mapping

You add a mapping to a frame to automatically fill the frame variables with the metadata from the selected assets.

To add a mapping to a frame:

  1. On the Dynamic frames tab, click + Dynamic frame.
  2. On the Dynamic frame dialog box, on the Mappings tab, click Add mapping.
  3. Set the values for the Source relation, Store property, and In Template value drop-down lists.
  4. Click Save.
Note

The Source relation drop-down list entities are the entities related to the selected assets. If Source relation is empty, metadata from the asset itself fills the template value.

Triggers

The Triggers tab lets you link template variables and frames to any Sitecore DAM entity and its associated metadata, such as Products or Brands.

Important

If you create a trigger, there must be an existing relationship between the entity definition you use as a trigger and the M.Chili.Publication definition. When you add entities from that linked definition to a template, the template editor page exposes them for users to fill out the variables and frames.

To add a trigger:

  1. On the Triggers tab, click + Trigger.
  2. On the Trigger dialog box, in the Source relation drop-down list, select the source entity you want to use.
  3. On the Variable mappings dialog box, optionally add variable mappings.
  4. On the Frame mappings dialog box, in the Entities linked through drop-down list, select the entities you want to link.
  5. Optionally add frame mappings.
  6. Click Save.

Add a variable mapping

You use variable mappings to store entity properties in a variable.

To add a variable mapping:

  1. On the Triggers tab, click + Trigger.
  2. On the Trigger dialog box, in the Source relation drop-down list, select the source entity you want to use.
  3. On the Variable mappings dialog box, click Add mapping.
  4. In the Store property drop-down list, select the property to store in the template variable.
  5. In the in template variable drop-down list, select the template variable that stores the property value.
  6. Click Save.

Add a frame mapping

You add a mapping to a frame to automatically fill the frame variables with an asset related to an entity from the selected source relation.

Important

Linked assets must have a ChiliType value.

To add a frame mapping:

  1. On the Triggers tab, click + Trigger.
  2. On the Trigger dialog box, in the Source relation drop-down list, select the source entity you want to use.
  3. On the Frame mappings dialog box, click Add mapping.
  4. In the If ChiliType is drop-down list, select the type that the asset must have to be stored in the frame.
  5. In the store in frame drop-down list, select the frame that stores the asset.
  6. Click Save.

Operations

You can perform operations on the template from its detail page.

To perform an operation on the template, on the top-right corner of the page, click More actions , then click one of the following:

  • Download preview : downloads the default PDF rendition of the template.
  • Revalidate template : revalidates the template.
  • Annotations: opens the Annotations page.
  • Duplicate : creates a duplication of the template.
  • Delete : deletes the template.

Can we improve this article ? Provide feedback