Settings for sections and blocks included in a [JSON template](/docs/storefronts/themes/architecture/templates/json-templates) have the option for merchants to [connect one or more dynamic sources to the setting](https://help.shopify.com/manual/metafields/displaying-metafields-on-your-online-store#connecting-metafields-to-your-theme-by-using-the-theme-editor), depending on the setting type. A dynamic source can be either: - A metafield value - A resource attribute > Note: > Dynamic sources aren't available for general theme settings. ## Available values Shopify determines the value of each available dynamic source type based on the following: - The resource associated with the template that the section is in - The resource settings in the context of the current setting For example:
Conditions | Description |
---|---|
The section is included as part of the product template | Metafields and attributes related to the product will be available for the following:
|
The section includes a collection type setting | Metafields and attributes related to the collection will be available for the following:
|
The section's blocks include a product type setting | Metafields and attributes for that product will be available for the block's settings. |
Resource | Attributes |
---|---|
product |
|
collection |
|
page |
|
article |
|
blog |
|
Setting | Metafield(s) | Metafield validation options |
---|---|---|
collection |
|
|
collection_list |
|
|
color |
|
|
image_picker |
|
|
page |
|
|
product |
|
|
product_list |
|
|
richtext |
|
|
inline_richtext |
|
|
text |
|
|
url |
|
|
video |
|
Must accept video file types |
metaobject |
|
Must be of the same metaobject type as in the setting's schema. |
metaobject_list |
|
Must be of the same metaobject type as in the setting's schema. |
Description | Limit |
---|---|
Dynamic sources in a JSON template | 100 |
Dynamic sources in general theme settings | 100 |
Dynamic sources in a section group | 100 |
Dynamic sources in a single setting | 50 |
Dynamic sources in a static section | 50 |