Tags
The Tags app adds a field type for maintaining a list of labels, such as electronics, clothing, and books on a product. The field returns the selected values as JSON, together with the plugin metadata.
Features
Section titled “Features”- Build a list of strings in one field.
- Select and display distinct labels.
- Set a placeholder shown while the field is inactive.
- Populate the field with an initial set of tags.
In the Block Library, select the block you want to edit, add a field, set its field type to Plugin, and set the custom type to storyblok-tags.
The field takes the following options:
| Option | Description |
|---|---|
placeholder |
Text shown while the field is inactive. |
initialValue |
JSON-encoded array of strings shown when the field loads. Use [] for no tags. |
Example initialValue:
["AUS", "BRA", "FRA", "SWE", "ITA"]Output
Section titled “Output”The field returns an object like the following:
{ "fieldname": { "value": ["AUS", "BRA", "FRA", "SWE", "ITA"], "plugin": "storyblok-tags" }}Further resources
Section titled “Further resources”Was this page helpful?
This site uses reCAPTCHA and Google's Privacy Policy (opens in a new window).Terms of Service (opens in a new window) apply.
Get in touch with the Storyblok community