| Name | Type | Description |
| object_type | String | Will always be datastore_item |
| is_valid | Boolean | True if this references a published template |
| guid | String | The unique identifier for this template |
| value | String | Contains the same value as guid |
| name | text | The name of the template which, when combined together with the path, uniquely identifies the template on this site |
| path | String | The path, exluding filename, of this template used for organizational and reference purposes |
| type | select | Field type (e.g., text, textarea, select, checkbox, etc.) |
| markup | code | Template markup/source code |
| field_id | String | The identifier for this field |
| label | String | The label for this field |
| output | String | Outputs the rendered template in a new child scope - similar to calling {% include %} with the current template. |
Contains multiple templates.
| Name | Type | Description |
| object_type | String | Will always be datastore_item |
| is_valid | Boolean | True if this contains at least one published template |
| output | String | The default output that the templates will produce when it is output directly to the template - using the "output_in_list" property of each template in the items list |
| prepended | list | List containing any prepended templates. |
| fetched | list | List containing all of the templates that were fetched from the database (as opposed to prepended or appended). |
| appended | list | List containing any appended templates. |
| appended_unique | list | List containing any appended templates excluding any templates that are in either the list of prepended or fetched templates. |
| items | list | List containing all of the combined templates from the prepended, fetched, and appended lists. If unique is true, this list will not contain any duplicates. If max_size is set, this list will not contain more than the number of templates specified. |
| size | Integer | The total number of templates in the items list, including prepended, fetched, and appended lists, and respecting the unique and max_size properties. |
| max_size | Integer | If set, this is the maximum number of items that will be returned in the items list and the maximum number of items that will be included when this templates object is enumerated as a list. When not set, this value will be 0. |
| unique | Boolean | When true, the items list will not contain any duplicates. Only the first instance of each template will be included. |
| limit | Integer | The maximum number of items that were allowed to be in the list of fetched templates. May be 0 in some cases (such as when when there are no fetched templates. |
| start | Integer | The 1-based index of the first item in the list of fetched templates. |
| page | Integer | The 1-based index of the paginated results returned in the list of fetched templates, which is calculated from the start and limit parameters. Useful for paginated results. |
| total_count | Integer | The 1-based index of the first item in the list of fetched templates |
| total_pages | Integer |
{% template output_to_template? [var, set, or assign]? variable? output_to_template? = value %}
{% templates output_to_template? [var, set, or assign]? variable? output_to_template? = arguments %}
arguments
Dynamically Include Template from a Select List
CopyDynamically Include Template from a Select List
CopyDynamically Include Multiple Templates from a Select List
CopyCheckbox Include Partial Template
CopyInline javscript from template
CopyDynamically Include Template
CopyInclude template and pass variables
Copy