> From the [Strife developer docs](https://strife.app/docs/reference/fields/content-template). Every page is listed in [llms.txt](https://strife.app/docs/llms.txt).

# Content Template

The Content Template field instantiates editing of a content template. Stores as an object in the database, including the fields from the chosen content template.

<figure><img src="https://strife.app/docs/assets/Screenshot%202023-10-30%20at%2013.50.16.png" alt="" width="375"><figcaption><p>Strife Studio screenshot of a Content Template field</p></figcaption></figure>

> [!NOTE]
> For further information on templates, please refer to this [reference guide](https://strife.app/docs/reference/templates.md).

### Settings

In addition to the basic settings, this section provides information about unique settings and configurations specific to this field.

> [!NOTE]
> You can find a comprehensive list of all basic settings in the ['Overview' section](https://strife.app/docs/reference/fields.md).

<table><thead><tr><th width="232">Option</th><th>Description</th><th data-hidden></th></tr></thead><tbody><tr><td>Content Template*</td><td>Selects the content template to use for editing</td><td></td></tr></tbody></table>

### Define with JSON

When defining templates using JSON, this field is represented using:

* **Component Name:** `str-content-template`
* **Type:** `content-template`
* Reference ID: `str-content-template`

The settings above map into the `editor.attributes` object inside the JSON definition.

```json
{
  ...
  "editor": {
    "name": "str-content-template",
    "type": "content-template",
    "propertyName": "...",
    "attributes": {
      "templateId": "..."    //The ID of the content template
    }
  },
  ...
}
```

### Live preview

To enable live preview for the Content Template field, refer to each field within the content template to find compatible Strife Web Components, ensuring seamless integration.

> [!NOTE]
> For more information on live preview and Strife Web Components, please refer to the [Live preview documentation](https://strife.app/docs/reference/live-preview.md).
