---
title: "Create a template for target items"
slug: "create-a-template-for-target-items"
abstract: "How to map data from a text file to a Sitecore item by creating a target item template in Sitecore Data Exchange Framework."
---
# Create a template for target items

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.

<details>
<summary><h2>Create a template</h2></summary>

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](https://doc.sitecore.com/api/markdown-image/xp/en/developers/def/60/data-exchange-framework/images/add-template.png)

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](https://doc.sitecore.com/api/markdown-image/xp/en/developers/def/60/data-exchange-framework/images/select-name-for-city-template.png)

5. In the **Location** dialog, select *Templates/User Defined*. Click **Next**. In the confirmation dialog, click **Close**.
6. In the confirmation dialog, click **Close**.

</details>

<details>
<summary><h2>Set an icon on the template</h2></summary>

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](https://doc.sitecore.com/api/markdown-image/xp/en/developers/def/60/data-exchange-framework/images/new-template-selected3.png)

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](https://doc.sitecore.com/api/markdown-image/xp/en/developers/def/60/data-exchange-framework/images/icon3.png)

4. In the **Change Icon** dialog, in the **Icon** field, enter, for example, `Office/32x32/pin.png`
5. Click **OK**.

</details>

<details>
<summary><h2>Add a field to a template</h2></summary>

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](https://doc.sitecore.com/api/markdown-image/xp/en/developers/def/60/data-exchange-framework/images/city-template.png)

3. Save the item.

</details>