🚧Template definition

Templates are used to define the structure and workflow behaviour of objects that are created based on that template.

Every product in our system revolves around two fundamental pillars: the definition of objects and the management of the workflow surrounding these objects. Objects are created based on templates. In this chapter you can read more about template configuration.

Concept of templates

Objects typically have a data set that describe an object. So for example, when your template is a "Book", the objects that you create are books. As each book is different, you want to describe it to a certain detail level. Describing your object is done with parts (or often called fields). A template "Book" could contain parts like Title, Writer, Category, Number of pages, First publication date. It depends on your needs how many parts you add. If the weight of the book is of interest to you, simply add that part as well. You can set visibilty rules on parts or checks on the content. All of that is configured in a template.

Second thing to configure is the workflow around your objects. Again, our "Book" example: when a new book is received, you want to label it, put it in a closet, lent it out and finally retire it. In each of these lifecycle stages, you can let workflows assist you with actions to be taken. For example: if your book is lent out, you want to register who the book has, and when it will return. If the book has not returned on that date, you want a reminder to be sent. This is an example of a workflow, triggered by a phase (lent out).

Create a new Template

  1. Go to the Service Catalog Admin page

  2. Click on "Catalog Maintenance" in the menu (please note that this is the default name, that may have been updated in your organization)

  3. Choose Templates

  4. Click the button "Add new template"

Be aware that objects are based on a template when they get created. The template can't be changed afterwards.

Now you can create a new template. The Name field is mandatory, all other fields are optional.

Below is an explanation of the options while creating a new template

This tab contains the general settings of the template

Name

Specify a name for this template

Live

When this option is set to β€˜Yes’, the template is enabled for creating a new object.

Type

Choose between Service, Group or Variant. Service is the default option and allows linking an object based on this template to any other object. A variant can only be linked as a child. A group can only be linked as a parent.

Always hide in public

When enabled, objects based on this template will not be visble in the public pages. When this option is set to β€œYes”, records created from this template will not be visible on public pages.

Object name

Free text makes it possible to give a object a free-text name

With Dynamic Value, you can use template fields to dynamically construct the name of the object. This is useful if you have a naming convention and all objects must have a similar name.

Object name format type

Choose between Plain text, NCALC or JavaScript for the way you want to set the object name.

Object name format

Use this field to set the dynamic value. It depends on the previous field if you type here plain text, NCALC or javascript.

Object summary contains html

When this option is set to β€œYes”, the contents of the summary field are displayed on public pages without being encoded. This allows you to include formatted text in your summary.

Object summary type

Plain text NCalc JavaScript

Object default type

Select the object type that should be set by default when a object is created from this template.

Available Phases

Here you can define which phases should be available in the lifecycle of a object.

Confirm message on publish request

This field is used to provide information to the person publishing a object based on this template. The message entered here is displayed immediately after the publication is completed. It can be used, for example, to inform the person about what will happen after the publication.

Confirm message on unpublish request

Specify a custom message that will be shown when a object created from this template is unpublished.

Confirm message on delete request

Specify a custom message that will be shown when an object created from this template is deleted.

On duplicate copy documents

Choose here if you want to include documents when copying an object based on this template.

On duplicate copy relations

Choose here if you want to include relations when copying an object based on this template.

UI styling css class name

Use this option to show objects based on this template in a specific style within overviews. The predefined classes success, info, warning, danger typically provide the colors Green, Blue, Yellow and Red. If you define additional classes in your customer.css file, other colors are possible.

Compare versions default left

When comparing version of published objects, choose here which version is shown on the left hand side.

  • Current working copy - This is the "live" version of an object

  • Current published version - This is the last published version

  • Latest version - This is the last created version. Every publication automatically creates a new version

  • Second to last version

Compare versions default right

When comparing version of published objects, choose here which version is shown on the right hand side.

  • Current working copy - This is the "live" version of an object

  • Current published version - This is the last published version

  • Latest version - This is the last created version. Every publication automatically creates a new version

  • Second to last version

Admin translations prefix

With this option you can have specific translation labels for objects based on this template. In case no prefix is set, the default labels are used. With prefix, the system will try to lookup the labels. When they can't be found, an empty record is created.

Add new service via modal help text

With this option you can provide a help text when creating a new object based on this template. Please note that this message is only visible if you choose to show a popup after clicking on the New button. This setting can be done in admin service overviews.

Last updated

Was this helpful?