Skip to content

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.

  • 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"]

The field returns an object like the following:

{
"fieldname": {
"value": ["AUS", "BRA", "FRA", "SWE", "ITA"],
"plugin": "storyblok-tags"
}
}

Was this page helpful?

What went wrong?

This site uses reCAPTCHA and Google's Privacy Policy (opens in a new window).Terms of Service (opens in a new window) apply.