Create a template for target items

Version:

In this walkthrough each row from the source text file represents information about a city. The data synchronization process maps the data from the text file to a Sitecore item. In order to store this information you must create a Sitecore template to store this information, add an icon to the template, and assign the data fields to the template.

Create a template

To create a template:

  1. In the Content Editor, navigate to Templates.

  2. On the menu ribbon, on the Home tab, in the Insert group, click New Template.

    New template option on Home tab
  3. In the Select name dialog, enter the following values:

    Name

    City Information

    Base template

    Templates/System/Templates/Standard Template

  4. Click Next.

    Select name dialog with Name and Base template fields filled in
  5. In the Location dialog, select Templates/User Defined. Click Next. In the confirmation dialog, click Close.

  6. In the confirmation dialog, click Close.

Set an icon on the template

To set an icon:

  1. In the Content Editor, in the content tree, select the new template, for example, Templates/User Defined/City Information.

    City Information template in content tree
  2. In the right-hand pane, on the Content tab, click the icon next to title.

  3. Click the icon next to title.

    City Information icon on Content tab
  4. In the Change Icon dialog, in the Icon field, enter, for example, Office/32x32/pin.png

  5. Click OK.

Add a field to a template

To add a field:

  1. To add a new template section, on the Builder tab, type Data in the Add a new section field.

  2. In the Data section, add the following fields:

    Name

    Type

    Shared

    Identifier

    Single-Line Text

    selected

    Country

    Single-Line Text

    City

    Single-Line Text

    When you have finished, the section looks like the following:

    Added fields in Data section
  3. Save the item.

If you have suggestions for improving this article, let us know!